Solr Replication 使用
来源:互联网 发布:单词社交网络学后即焚 编辑:程序博客网 时间:2024/06/03 13:58
Master配置
------------ solrconfig.xml ----------
<requestHandlername="/replication" class="solr.ReplicationHandler" >
<!--
To enable simple master/slavereplication, uncomment one of the
sections below, depending on whetherthis solr instance should be
the "master" or a"slave". If this instance is a"slave" you will
also need to fill in the masterUrl topoint to a real machine.
-->
<lst name="master">
<strname="replicateAfter">commit</str>
<strname="replicateAfter">startup</str>
<strname="confFiles">schema.xml,stopwords.txt,elevate.xml</str>
<strname="commitReserveDuration">00:00:10</str>
<str name="maxNumberOfBackups">1</str>
</lst>
</requestHandler>
Slaver配置
------------ solrconfig.xml ----------
<requestHandlername="/replication" class="solr.ReplicationHandler" >
<!--
To enable simple master/slavereplication, uncomment one of the
sections below, depending on whetherthis solr instance should be
the "master" or a"slave". If this instance is a"slave" you will
also need to fill in the masterUrl topoint to a real machine.
-->
<lst name="slave">
<strname="masterUrl">http://10.101.1.xxx:8080/solr/[core-name]</str>
<strname="pollInterval">00:00:60</str>
<strname="compression">internal</str>
<strname="httpConnTimeout">5000</str>
<strname="httpReadTimeout">10000</str>
</lst>
</requestHandler>
Master和Slave可以配置在一台Web服务下,也可以在不同机器的Web服务下。配置好后,重启(tomcat)服务就可以生效,Slave将自动按照配置的轮询间隔(‘pollInterval’)向Master轮询,如果Master索引发生了变化,将自动进行同步(复制)。
进入从库(slave)链接的管理界面的replication页面,可以看到下一次复制轮询的倒计时,复制状态,并可进行相关的操作等。
http://10.101.1.xxx:8080/solr/#/[core-name]/replication
- Solr Replication 使用
- solr replication原理探究
- Solr Replication (Wiki)
- Solr Replication命令
- solr replication原理探究
- Solr索引复制(Index Replication)
- Solr集群Replication配置与实践
- Solr之集群Replication配置与实践
- Solr集群Replication配置与实践
- 【Solr】——Search On Lucene Replication
- Solr集群Replication配置与实践
- hbase的replication使用
- hbase的replication使用
- HBase replication使用
- hbase的replication使用
- Solr集群Replication配置与实践,solrconfig.xml 介绍
- Solr Replication (复制) 索引和文件的工作机制
- solr replication,大部分master-slave模式才能用
- Java进制间转换
- Xtrabackup安装及使用(转)
- 将inpupt属性设置为readOnly hibernate抛出异常
- 模版:struts.xml配置拦截器
- 创建一个简单的android aidl工程
- Solr Replication 使用
- su和sudo区别
- 黑马程序员——OC基础--@property在开发中需要注意的使用细节
- ios默认的字体大小单位为pt
- ubuntu12.04安装AMD显卡驱动
- > /dev/null 2>&1
- JavaWeb - XML
- CSS3 动态生成文字旋转动画样式
- Injection of autowired dependencies failed;