Get cache statistics Technical preview; Added in 7.13.0
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
GET /_searchable_snapshots/{node_id}/cache/stats
Console
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 } } } }