Solr集群配置(Master-slave)

现在使用Master-Slave的放方式配置Solr的集群,Master用来创建索引,Slave从Master复制索引。
 
Mater-solrConfig.xml 写道
<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>
</requestHandler>

 

Slave-solrConfig.xml 写道
<requestHandler name="/replication" class="solr.ReplicationHandler">
<lst name="slave">
<str name="masterUrl">http://localhost:8080/mysolr</str>
<str name="pollInterval">00:00:05</str>
</lst>
</requestHandler>

 

你可能感兴趣的:(master)