cuba-platform / fts

Full-Text Search Addon
https://www.cuba-platform.com/
Apache License 2.0
4 stars 1 forks source link

Expose LRUQueryCache statistics to JMX #48

Closed alexbudarov closed 5 years ago

alexbudarov commented 5 years ago

Description of the bug or enhancement

Lucene has global cache LRUQueryCache stored in org.apache.lucene.search.IndexSearcher#DEFAULT_QUERY_CACHE field.

From LRUQueryCache javadocs:

This cache exposes some global statistics (hit count, miss count, number of cache entries, total number of DocIdSets that have ever been cached, number of evicted entries).

I think this can be useful for monitoring, if we expose it through jmx attributes.

andreysubbotin commented 5 years ago

Git changes: https://git.haulmont.com/platform/fts/commit/0bf481cb91da0e3cd3ed40eccae0a990e1183d47

andreysubbotin commented 5 years ago

@alexbudarov, We can move to 6.8 if needed