On 3/2/2021 3:47 PM, Stephen Lewis Bianamara wrote:
I'm investigating a weird behavior I've observed in the admin page for
caffeine cache metrics. It looks to me like on the older caches, warm-up
queries were not counted toward hit/miss ratios, which of course makes
sense, but on Caffeine cache it looks like they are. I'm using solr 8.3.

Obviously this makes measuring its true impact a little tough. Is this by
any chance a known issue and already fixed in later versions?

The earlier cache implementations are entirely native to Solr -- all the source code is include in the Solr codebase.

Caffeine is a third-party cache implementation that has been integrated into Solr. Some of the metrics might come directly from Caffeine, not Solr code.

I would expect warming queries to be counted on any of the cache implementations. One of the reasons that the warming capability exists is to pre-populate the caches before actual queries begin. If warming queries are somehow excluded, then the cache metrics would not be correct.

I looked into the code and did not find anything that would keep warming queries from affecting stats. But it is always possible that I just didn't know what to look for.

In the master branch (Solr 9.0), CaffeineCache is currently the only implementation available.

Thanks,
Shawn

Reply via email to