lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrReplication" by NoblePaul
Date Thu, 27 Aug 2009 07:31:53 GMT
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 NoblePaul:
http://wiki.apache.org/solr/SolrReplication

The comment on the change is:
SOLR-1355 related documentation

------------------------------------------------------------------------------
- 
  <!> ["Solr1.4"]
  
  This document describes the Java implementation of index replication that works over HTTP
and was introduced in ["Solr1.4"].  For information on the ssh/rsync based replication available
since ["Solr1.1"] please consult CollectionDistribution.
  
- <!> ["Solr1.4"]
  
  = Features =
   * Replication without requiring external scripts
@@ -167, +165 @@

   * 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 ==
+ ==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 both master and slave, do as follows,
  {{{
  <requestHandler name="/replication" class="solr.ReplicationHandler" >
-   <lst name="${master:master}">
+   <lst name="master">
+     <str name="enable">${enable.master:false}</str> 
      <str name="replicateAfter">commit</str>
      <str name="confFiles">schema.xml,stopwords.txt</str>
   </lst>
-  <lst name="${slave:slave}">
+  <lst name="slave">
+     <str name="enable">${enable.slave:false}</str> 
     <str name="masterUrl">http://localhost:8983/solr/replication</str>
     <str name="pollInterval">00:00:60</str>
   </lst>
  </requestHandler>
  }}}
- When the master is started, pass in -Dslave=disabled and in the slave pass in -Dmaster=disabled.
These arguments will change the tag value for the requestHandler and thereby disable the unwanted
functionality in each server.
+ When the master is started, pass in -Denable.master=true and in the slave pass in -Denable.slave=true.
Alternately , these values can be stored in a solrcore.properties file as follows
+ {{{
+ #solrcore.properties in master
+ enable.master=true
+ enable.slave=false
+ }}}
+ and in slave
+ {{{
+ #solrcore.properties in slave
+ enable.master=false
+ enable.slave=true
+ }}}
+ 
  
  == Admin Page for Replication ==
  inline:replication.png

Mime
View raw message