cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How are unavailable Solr servers handled?

Former Member
0 Kudos
219

I could not find any documentation on how the backend deals with unavailable Solr servers in case there are multiple configured in the facet search config, so I tried to take a look at the decompiled code and experiment with it.

To me it seems the default logic is like this:

  1. If a query or indexing operation does not get a result, move on to the next Solr server. The timout for this can be controlled in the backoffice, the default is 5 seconds. See AbstractSolrSearchProvider.

  2. Every 60 seconds check if the Solr server can be reached. If not, remove it from the pool of available servers. This intervall can be changed using the system property solrfacetsearch.solrClientPool.checkInterval. See DefaultSolrClientPool.

  3. If there is only one Solr server remaining, keep it in the pool even if it cannot be reached at the moment.

  4. If a Solr server is removed from the pool, it's gone for good and will return only after a restart when the facet search config is read again.

Is this correct?

Accepted Solutions (0)

Answers (0)