So for large indexes, there is a chance that filterCache of 128 can cause bad GC. And for smaller indexes, it would really not matter that much because well, the index size is small and probably whole of it is in OS-cache anyways. So perhaps a default of 64 would be a much saner choice to get the best of both the worlds?
On Thu, Oct 5, 2017 at 7:23 AM, Yonik Seeley <ysee...@gmail.com> wrote: > On Thu, Oct 5, 2017 at 3:20 AM, Toke Eskildsen <t...@kb.dk> wrote: > > On Wed, 2017-10-04 at 21:42 -0700, S G wrote: > > > > It seems that the memory limit option maxSizeMB was added in Solr 5.2: > > https://issues.apache.org/jira/browse/SOLR-7372 > > I am not sure if it works with all caches in Solr, but in my world it > > is way better to define the caches by memory instead of count. > > Yes, that will work with the filterCache, but one needs to change the > cache type as well (maxSizeMB is only an option on LRUCache, and > filterCache uses FastLRUCache in the default solrconfig.xml) > > -Yonik >