igor.rmarinho_185445 avatar image
igor.rmarinho_185445 asked Erick Ramirez commented

How do I configure the SolrFilterCache high water mark recommended by OpsCenter BP service?

I'm trying to implement some of the best practices suggest by OpsCenter, but I cannot find where to change the values and is not described on DataStax documentation.

  1. Search nodes with bad filter cache size
  2. Checks to see if filter cache size is optimized for a running Solr node.
  3. Please modify your filter cache size attribute to 128 if using solr.LRUCache. Otherwise, if using, modify the highWaterMarkMB attribute to 256.
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

@igor.rmarinho_185445 The Solr caches are defined in the Solr (Search index) configuration of each core. The filter cache is one of the settings in the query section of the solrconfig.xml:

  <filterCache class="solr.SolrFilterCache" highWaterMarkMB="2048" lowWaterMarkMB="1024"/>

You can either choose to modify the solrconfig.xml directly or you can set the cache size via CQL. For example:

cqlsh> ALTER SEARCH INDEX CONFIG ON SET filterCacheHighWaterMark = 2048;

For more information, see the Search index config page. Cheers!

4 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

igor.rmarinho_185445 avatar image igor.rmarinho_185445 commented ·

Thanks Erick!

I just have a few questions about it.

  1. is a Default one? it does not exist in my environment, should I create it?
  2. The default it's 2048 so if I change it to 256 It will be decreased ...
0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ igor.rmarinho_185445 commented ·

@igor.rmarinho_185445 (1) It's just an example I used. (2) Don't change it -- it's an old value in the OpsCenter BP rule that needs to get updated to 2048. Cheers!

1 Like 1 ·
igor.rmarinho_185445 avatar image igor.rmarinho_185445 Erick Ramirez ♦♦ commented ·

Thanks Erick I was about to change it!

I'm learning a lot from you! keep the good work!

0 Likes 0 ·
Show more comments