Domanda

In order to change configuration on slaves I want to change configuration on master simply by editing solrconf.xml file. What should I do in order to trigger pulls on slaves or it will happen automatically since file modification date was changed.

È stato utile?

Soluzione

Yes, you can configure Solr replication to send the configuration files (schema.xml & solrconfig.xml) as well as other configuration files (stopwords.txt, synonyms.txt, etc.). See the Solr Replication - How are configuration files replicated? section on the Solr wiki for details and notes on how this works.

Here is the replication configuration section from the solrconfig.xml example that comes with Solr 3.6.1. Please note the confFiles entry.

 <requestHandler name="/replication" class="solr.ReplicationHandler" >
   <lst name="master">
     <str name="replicateAfter">commit</str>
     <str name="replicateAfter">startup</str>
     <str name="confFiles">schema.xml,stopwords.txt</str>
   </lst>
   <lst name="slave">
     <str name="masterUrl">http://localhost:8983/solr/replication</str>
     <str name="pollInterval">00:00:60</str>
   </lst>
 </requestHandler>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top