In solr Master-Slave configuration custom indexes are getting out of sync sometimes in one of the slave server

86 Views Asked by At

In our production environment, we have Master-Slave SOLR server configuration. We have 2 SOLR slave servers and configured SOLR load balancing URLs in prod CM and CD servers. Right now we are facing intermittent issues with our custom indexes and our search is not working properly. So every time we face this intermittent issue we need to rebuild the custom indexes to get the search results.

After investigation, we found that custom indexes in one of the SOLR slave servers are getting out of sync sometimes with the master SOLR server.

Our custom indexes have primary and secondary cores which also point differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex. Should we use SwitchOnRebuildSolrSearchIndex with Master-Slave configuration?

Production Environment: For production, we have one Sitecore content management server and two content delivery servers.

Solr version: 7.2.1

Sitecore version: 9.1.0

Master Server SolrConfig.xml: enter image description here

Slave Server SolrConfig.xml:

enter image description here

Core.properties :

Master server:

enable.master = true

enable.slave = false

Slave server:

enable. master = false

enable. slave = true

SwitchOnRebuildSolrSearchIndex config:

enter image description here

enter image description here

0

There are 0 best solutions below