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.
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.
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.
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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With