Get cache statistics Technical preview; Added in 7.13.0

GET /_searchable_snapshots/{node_id}/cache/stats

All methods and paths for this operation:

GET /_searchable_snapshots/cache/stats

GET /_searchable_snapshots/{node_id}/cache/stats

Get statistics about the shared cache for partially mounted indices.

Required authorization

  • Cluster privileges: manage
External documentation

Path parameters

  • node_id string | array[string] Required

    The names of the nodes in the cluster to target.

Query parameters

  • master_timeout string

    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.

    Values are -1 or 0.

Responses

GET /_searchable_snapshots/{node_id}/cache/stats
GET /_searchable_snapshots/cache/stats 
resp = client.searchable_snapshots.cache_stats()
const response = await client.searchableSnapshots.cacheStats();
response = client.searchable_snapshots.cache_stats
$resp = $client->searchableSnapshots()->cacheStats();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_searchable_snapshots/cache/stats"
Response examples (200)
A successful response from `GET /_searchable_snapshots/cache/stats`.
{ "nodes" : { "eerrtBMtQEisohZzxBLUSw" : { "shared_cache" : { "reads" : 6051, "bytes_read_in_bytes" : 5448829, "writes" : 37, "bytes_written_in_bytes" : 1208320, "evictions" : 5, "num_regions" : 65536, "size_in_bytes" : 1099511627776, "region_size_in_bytes" : 16777216 } } } }