Retrieve node-level cache statistics about searchable snapshots Technical preview

GET /_searchable_snapshots/{node_id}/cache/stats

Path parameters

  • node_id string | array[string] Required

    A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes

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/{node_id}/cache/stats
curl \
 -X GET http://api.example.com/_searchable_snapshots/{node_id}/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
      }
    }
  }
}