Get cache statistics Technical preview

GET /_searchable_snapshots/cache/stats

Get statistics about the shared cache for partially mounted indices.

Query parameters

  • A duration. Units can be nanos, micros, ms (milliseconds), s (seconds), m (minutes), h (hours) and d (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.

Responses

GET /_searchable_snapshots/cache/stats
curl \
 -X GET http://api.example.com/_searchable_snapshots/cache/stats
Response examples (200)
{
  "nodes": {
    "additionalProperty1": {
      "shared_cache": {
        "reads": 42.0,
        "": 42.0,
        "writes": 42.0,
        "evictions": 42.0,
        "num_regions": 42.0
      }
    },
    "additionalProperty2": {
      "shared_cache": {
        "reads": 42.0,
        "": 42.0,
        "writes": 42.0,
        "evictions": 42.0,
        "num_regions": 42.0
      }
    }
  }
}