Filter cache statistics
Record core-specific filter cache statistics over time.
All statistics reset upon node restart. |
This table is configured with gc_grace_seconds
0 to avoid issues with persistent tombstones as rows expire;
tombstones are removed during compaction no matter how recently they were created.
Solr exposes a core’s filter cache statistics through its registered index searcher, but the core may have many index searchers over its lifetime. To reflect this, statistics are provided for the currently registered searcher as well as cumulative/lifetime statistics.
If the dseFilterCache hit_ratio
declines over time, and this hit_ratio
decline corresponds to a higher average latency from the QueryMetrics.getAverageLatency
(EXECUTE
, null
) MBean, consider increasing the size of your filter cache in search index config.
JMX analog
solr/core/dseFilterCache/com.datastax.bdp.search.solr.FilterCacheMBean
Schema
CREATE TABLE dse_perf.solr_filter_cache_stats (
node_ip inet,
core text,
date timestamp,
time timestamp,
hits bigint,
inserts bigint,
evictions bigint,
hit_ratio float,
lookups bigint,
num_entries bigint,
cumulative_lookups bigint,
cumulative_hits bigint,
cumulative_hitratio float,
cumulative_inserts bigint,
cumulative_evictions bigint,
warmup_time bigint,
PRIMARY KEY ((node_ip, core, date), time)
)
WITH gc_grace_seconds=0
Field | Type | Purpose |
---|---|---|
|
inet |
Node IP address. |
core |
text |
Search index name, such as |
date |
timestamp |
Midnight on the mm/dd/yyyy the statistics were recorded. |
time |
timestamp |
The exact time the statistics were recorded. |
hits |
bigint |
Cache hits for the registered index searcher. |
inserts |
bigint |
Cache insertions for the registered index searcher. |
evictions |
bigint |
Cache evictions for the registered index searcher. |
|
float |
The ratio of cache hits/lookups for the registered index searcher. |
lookups |
bigint |
Cache lookups for the registered index searcher. |
|
bigint |
Number of cache entries for the registered index searcher. |
|
bigint |
Cumulative cache lookups for the core. |
|
bigint |
Cumulative cache hits for the core. |
|
float |
Cumulative ratio of cache hits/lookups for the core. |
|
bigint |
Cumulative cache inserts for the core. |
|
bigint |
Cumulative cache evictions for the core. |
|
bigint |
Warm-up time for the registered index searcher. |
Snapshots for cumulative statistics recorded on 10/17/2014 for core keyspace.table
on the node 127.0.0.1:
SELECT cumulative_lookups, cumulative_hits, cumulative_hitratio, cumulative_inserts
FROM solr_filter_cache_stats
WHERE node_ip = '127.0.0.1' AND core = 'keyspace.table' AND date = '2014-10-17';
Most recent 5 snapshots recorded on 10/17/2014 for core keyspace.table
on the node 127.0.0.1:
SELECT *
FROM solr_filter_cache_stats
WHERE node_ip = '127.0.0.1'
AND core = 'keyspace.table'
AND date = '2014-10-17'
ORDER BY time DESC
LIMIT 5;