美文网首页
Solr高级_Master/Slave

Solr高级_Master/Slave

作者: 炼心之旅 | 来源:发表于2018-08-28 08:44 被阅读0次

Core的创建删除是不能同步,只能同步Core中的数据

配置主节点:
<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>

<str name="httpBasicAuthUser">root</str>

<str name="httpBasicAuthPassword">root123</str>
</lst>
</requestHandler>

配置从节点:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="slave">

<str name="masterUrl">http://XXX.XXX.X.XXX:8983/solr/${solr.core.name}/replication</str>

<str name="pollInterval">00:00:30</str>

<str name="compression">internal</str>

<str name="httpConnTimeout">50000</str>
<str name="httpReadTimeout">500000</str>

<str name="httpBasicAuthUser">root</str>
<str name="httpBasicAuthPassword">root123</str>
</lst>
</requestHandler>

相关文章

网友评论

      本文标题:Solr高级_Master/Slave

      本文链接:https://www.haomeiwen.com/subject/vctfwftx.html