solr 主从配置 索引的主从复制
配置solr (windows)并配中文分词 IKAnalyzer
现在做一下主从配置笔记:
修改主:solrconfig.xml文件
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<str name="replicateAfter">commit</str>
<str name="replicateAfter">startup</str>
<!-- <str name="replicateAfter">optimize</str>-->
<!--<str name="backupAfter">optimize</str>-->
<str name="confFiles">solrconfig_slave.xml:solrconfig.xml,schema.xml,stopwords.txt,elevate.xml</str>
<str name="httpBasicAuthUser">administrator</str>
<str name="httpBasicAuthPassword">123456</str>
</lst>
</requestHandler>
从solr 文件:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="slave">
<str name="masterUrl">http://localhost:8081/solr/replication</str>
<str name="pollInterval">00:00:60</str>
<str name="compression">internal</str>
<str name="httpConnTimeout">5000</str>
<str name="httpReadTimeout">10000</str>
</lst>
</requestHandler>
上在参数也不多说了、一看英文也明白,
页:
[1]