You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/05/21 13:41:58 UTC
[Solr Wiki] Update of "SolrReplication" by ShalinMangar
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by ShalinMangar:
http://wiki.apache.org/solr/SolrReplication
The comment on the change is:
Adding enable/disable replication command
------------------------------------------------------------------------------
== HTTP API ==
These commands can be invoked over HTTP to the !ReplicationHandler
- * Abort copying snap from master to slave .command : http://slave_host:port/solr/replication?command=abort
+ * Abort copying snapshot from master to slave command : http://slave_host:port/solr/replication?command=abort
* Force a snapshot on master.This is useful to take periodic backups .command : http://master_host:port/solr/replication?command=snapshoot
* Force a snap pull on slave from master command : http://slave_host:port/solr/replication?command=snappull
* It is possible to pass on extra attribute 'masterUrl' or other attributes like 'compression' (or any other parameter which is specified in the <lst name="slave"> tag) to do a one time replication from a master. This obviates the need for hardcoding the master in the slave.
@@ -108, +108 @@
* Get all the details of the configuration and current status : http://slave_host:port/solr/replication?command=details
* Get version number of the index: http://host:port/solr/replication?command=indexversion
* Get list of lucene files present in the index: http://host:port/solr/replication?command=filelist&indexversion=<index version number>
+ * Disable replication on master for all slaves : http://master_host:port/solr/replication?command=disablereplication
+ * Enable replication on master for all slaves : http://master_host:port/solr/replication?command=enablereplication
+
== Hack to enable/disable master/slave in a node ==
If a server needs to be turned into a master from a slave or if you wish to use the same solrconfig.xml for master and slave do as follows,
{{{