Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr configuration replication

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.

like image 953
yura Avatar asked Sep 10 '12 21:09

yura


People also ask

What is index replication?

Index Replication distributes complete copies of a leader index to one or more follower servers. The leader server continues to manage updates to the index. All querying is handled by the followers. This division of labor enables Solr to scale to provide adequate responsiveness to queries against large search volumes.

What is SolrCloud?

SolrCloud is flexible distributed search and indexing, without a master node to allocate nodes, shards and replicas. Instead, Solr uses ZooKeeper to manage these locations, depending on configuration files and schemas. Queries and updates can be sent to any server.

How does Python connect to Solr?

Simple PythonFirst, tell Python you will need to make HTTP connections. Now open a connection to the server and get a response. The wt query parameter tells Solr to return results in a format that Python can understand. Now interpreting the response is just a matter of pulling out the information that you need.


1 Answers

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>
like image 78
Paige Cook Avatar answered Sep 29 '22 04:09

Paige Cook