You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Ruchi Gupta <ru...@nagarro.com> on 2023/03/01 13:36:25 UTC

Solr custom index issue in master slave configuration

Hi Team,

We have a Sitecore CMS based project where we are facing the intermittent issue in search functionality on Production. In our production environment we have one Sitecore CM server and 2 on premise CD servers and one Azure Prod Server.

Solr Server Configuration:

On Production there is one Master and two Slave solr servers. We are using Master-Slave solr setup and configured solr load balancing URL in both prod CM and CD servers.

Problem Statement :
We are facing intermittent issues for our custom indexes due to which our search is not working properly. After investigation, we found that custom indexes in one of the solr slave server are getting out of sync sometimes with the master solr server. Every time to resolve that issue, we need to rebuild the custom indexes to get the search results.

Our custom indexes have primary and secondary cores which also points differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex.
Example : search_index (Primary core) and search_index_rebuild(Secondary core)

Version:
Solr version: 7.2.1
Sitecore version: 9.1.0

We are using the below configuration to setup the index replication on slave servers.

Solr Master Server solrconfig.xml:
[cid:image003.png@01D94C6B.D7F0E280]

Solr Slave Server solrconfig.xml :
[cid:image002.png@01D94C6B.77FBE9B0]

Core.properties :

Master server:
enable.master = true
enable.slave = false

Slave server:
enable. master = false
enable. slave = true

Could you please help us to resolve this index out of sync issue and to find out the root cause of it. Please let us know if you require more information.

Thanks & Regards,

Ruchi Gupta
Senior Engineer
ruchi.gupta01@nagarro.com<ma...@nagarro.com>
M: +91 9926099544

[cid:image001.gif@01D94C69.FA316B00]


Re: Solr custom index issue in master slave configuration

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

I cannot see anything in your problem description suggesting that there is an issue on the Solr level here.
Don't even know what a 'custom index' or 'SwitchOnRebuildSolrSearchIndex' is, sounds like SiteCore speak?
I think you will have more success seeking support in theSitecore community.

Jan

> 6. mar. 2023 kl. 08:20 skrev Ruchi Gupta <ru...@nagarro.com>:
> 
> Hi Team,
>  
> Is there any update on the below Solr custom index issue in master slave configuration?
>  
> Regards,
> Ruchi Gupta
>  
> From: Ruchi Gupta 
> Sent: Wednesday, March 1, 2023 7:06 PM
> To: users@solr.apache.org
> Cc: Marek Seda <ma...@hempel.com>; Syed Hussain <sy...@hempel.com>; DG Hempel Sitecore Support <He...@nagarro.com>
> Subject: Solr custom index issue in master slave configuration
>  
> Hi Team,
>  
> We have a Sitecore CMS based project where we are facing the intermittent issue in search functionality on Production. In our production environment we have one Sitecore CM server and 2 on premise CD servers and one Azure Prod Server.
>  
> Solr Server Configuration:
>  
> On Production there is one Master and two Slave solr servers. We are using Master-Slave solr setup and configured solr load balancing URL in both prod CM and CD servers.
>  
> Problem Statement : 
> We are facing intermittent issues for our custom indexes due to which our search is not working properly. After investigation, we found that custom indexes in one of the solr slave server are getting out of sync sometimes with the master solr server. Every time to resolve that issue, we need to rebuild the custom indexes to get the search results.
>  
> Our custom indexes have primary and secondary cores which also points differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex.
> Example : search_index (Primary core) and search_index_rebuild(Secondary core)
>  
> Version: 
> Solr version: 7.2.1
> Sitecore version: 9.1.0
>  
> We are using the below configuration to setup the index replication on slave servers.
>  
> Solr Master Server solrconfig.xml:
> 
>  
> Solr Slave Server solrconfig.xml :
> 
>  
> Core.properties :
>  
> Master server:
> enable.master = true
> enable.slave = false
> 
> Slave server:
> enable. master = false
> enable. slave = true
>  
> Could you please help us to resolve this index out of sync issue and to find out the root cause of it. Please let us know if you require more information.
>  
> Thanks & Regards,
>  
> Ruchi Gupta
> Senior Engineer
> ruchi.gupta01@nagarro.com <ma...@nagarro.com>          
> M: +91 9926099544


RE: Solr custom index issue in master slave configuration

Posted by Ruchi Gupta <ru...@nagarro.com>.
Hi Team,

Is there any update on the below Solr custom index issue in master slave configuration?

Regards,
Ruchi Gupta

From: Ruchi Gupta
Sent: Wednesday, March 1, 2023 7:06 PM
To: users@solr.apache.org
Cc: Marek Seda <ma...@hempel.com>; Syed Hussain <sy...@hempel.com>; DG Hempel Sitecore Support <He...@nagarro.com>
Subject: Solr custom index issue in master slave configuration

Hi Team,

We have a Sitecore CMS based project where we are facing the intermittent issue in search functionality on Production. In our production environment we have one Sitecore CM server and 2 on premise CD servers and one Azure Prod Server.

Solr Server Configuration:

On Production there is one Master and two Slave solr servers. We are using Master-Slave solr setup and configured solr load balancing URL in both prod CM and CD servers.

Problem Statement :
We are facing intermittent issues for our custom indexes due to which our search is not working properly. After investigation, we found that custom indexes in one of the solr slave server are getting out of sync sometimes with the master solr server. Every time to resolve that issue, we need to rebuild the custom indexes to get the search results.

Our custom indexes have primary and secondary cores which also points differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex.
Example : search_index (Primary core) and search_index_rebuild(Secondary core)

Version:
Solr version: 7.2.1
Sitecore version: 9.1.0

We are using the below configuration to setup the index replication on slave servers.

Solr Master Server solrconfig.xml:
[cid:image003.png@01D9502A.3CF7C6A0]

Solr Slave Server solrconfig.xml :
[cid:image004.png@01D9502A.3CF7C6A0]

Core.properties :

Master server:
enable.master = true
enable.slave = false

Slave server:
enable. master = false
enable. slave = true

Could you please help us to resolve this index out of sync issue and to find out the root cause of it. Please let us know if you require more information.

Thanks & Regards,

Ruchi Gupta
Senior Engineer
ruchi.gupta01@nagarro.com<ma...@nagarro.com>
M: +91 9926099544

[cid:image005.gif@01D9502A.3CF7C6A0]