Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

igor.rmarinho_185445 avatar image
igor.rmarinho_185445 asked ·

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 solr.search.SolrFilterCache, modify the highWaterMarkMB attribute to 256.
dsesearch
10 |1000 characters needed characters left characters exceeded

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 ·

@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:

<query>
  <maxBooleanClauses>1024</maxBooleanClauses>
  <filterCache class="solr.SolrFilterCache" highWaterMarkMB="2048" lowWaterMarkMB="1024"/>
  <enableLazyFieldLoading>true</enableLazyFieldLoading>
  <useColdSearcher>true</useColdSearcher>
  <maxWarmingSearchers>16</maxWarmingSearchers>
</query>

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 solr.wiki SET filterCacheHighWaterMark = 2048;

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

4 comments Share
10 |1000 characters needed characters left characters exceeded

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

Thanks Erick!

I just have a few questions about it.

  1. solr.wiki 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 ·

@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 · ·

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