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 2011/11/17 15:49:25 UTC

[Solr Wiki] Update of "SolrReplication" by JamesDyer

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrReplication" page has been changed by JamesDyer:
http://wiki.apache.org/solr/SolrReplication?action=diff&rev1=77&rev2=78

  
   * Get the latest replicateable index on master:  http://master_host:port/solr/replication?command=indexversion
   * Abort copying index from master to slave command: http://slave_host:port/solr/replication?command=abortfetch
-  * Create a backup on master if there are committed index data in the server, otherwise do nothing. This is useful to take periodic backups. Command: http://master_host:port/solr/replication?command=backup.  Can also provide a location parameter (i.e. &location=/foo/bar), which is the directory to write the backup to on disk.  
+  * Create a backup on master if there are committed index data in the server, otherwise do nothing. This is useful to take periodic backups. Command: http://master_host:port/solr/replication?command=backup.  
+   * Can also provide a location parameter (i.e. &location=/foo/bar), which is the directory to write the backup to on disk.  
+   * Specify parameter "numberToKeep" to indicate how many backups to retain (including this one).  Older backups will be automatically deleted. (i.e. &numberToKeep=2) [[Solr3.5]] [[Solr4.0]] [[https://issues.apache.org/jira/browse/SOLR-2578|SOLR-2578]]
- 
- (See [[https://issues.apache.org/jira/browse/SOLR-2578|https://issues.apache.org/jira/browse/SOLR-2578]] for the additional ability to automatically clean up old backups and specify the number of backups to keep)
- 
   * Force a fetchindex on slave from master command: http://slave_host:port/solr/replication?command=fetchindex
    * 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.
   * Disable polling for changes from slave command: http://slave_host:port/solr/replication?command=disablepoll