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 RobbieMackay
Date Fri, 13 May 2011 08:54:09 GMT
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 RobbieMackay.
The comment on this change is: Add section on replication and multicore.
http://wiki.apache.org/solr/SolrReplication?action=diff&rev1=73&rev2=74

--------------------------------------------------

  enable.slave=true
  }}}
  
+ == Replication with MultiCore ==
+ Add the replication request handler to solrconfig.xml for each core (i.e. /usr/share/tomcat6/solr/CORENAME/conf/solrconfig.xml).
+ You can use ${solr.core.name} to avoid hard coding the core name in your config.
+ 
+ Master configuration remains the same:
+ {{{
+ <requestHandler name="/replication" class="solr.ReplicationHandler" >
+   <lst name="master">
+     <str name="replicateAfter">commit</str>
+     <str name="confFiles">schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml</str>
+   </lst>
+ </requestHandler>
+ }}}
+ 
+ And slave just needs the core.name added.
+ {{{
+ <requestHandler name="/replication" class="solr.ReplicationHandler" >
+   <lst name="slave">
+     <str name="masterUrl">http://${MASTER_CORE_URL}/${solr.core.name}/replication</str>
+     <str name="pollInterval">${POLL_TIME}</str>
+   </lst>
+ </requestHandler>
+ }}}
+ 
+ Variables (i.e. $POLL_TIME $MASTER_CORE_URL) can be defined in a solrcore.properties file
for each core.
+ 
  = Replication Dashboard =
  This shows the following information
  

Mime
View raw message