SolrConfig.xml
replicateAfter String specifying action after which replication should occur. Valid values are commit,optimize,or startup. There can be multiple values for this parameter. If you use "startup",you need to have a "commit" and/or "optimize" entry also if you want to trigger replication on futures commits or optimizes. salve pollInterval The master is totally unaware of the slaves. The slave continuously keeps polling the master (depending on thepollIntervalparameter) to check the current index version the master. If the slave finds out that the master has a newer version of the index it initiates a replication process. The steps are as follows:
confFiles
To replicate configuration files,list them using using theconfFilesparameter. Only files found in theconfdirectory of the master's Solr instance will be replicated Solr replicates configuration files only when the index itself is replicated. That means even if a configuration file is changed on the master,that file will be replicated only after there is a new commit/optimize on master's index. Unlike the index files,where the timestamp is good enough to figure out if they are identical,configuration files are compared against their checksum. Theschema.xmlfiles (on master and slave) are judged to be identical if their checksums are identical. As a precaution when replicating configuration files,Solr copies configuration files to a temporary directory before moving them into their ultimate location in the conf directory. The old configuration files are then renamed and kept in the sameconf/directory. The ReplicationHandler does not automatically clean up these old files. If a replication involved downloading of at least one configuration file,the ReplicationHandler issues a core-reload command instead of a commit command. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- objective-c – _PFBatchFaultingArray objectAtIndex:
- corosync+ pacemaker实现pg流复制自动切换(一)
- ruby-on-rails – 黄瓜和清除:current_user步骤
- 利用XML的dom进行数据的增删改查
- DDD调试opencore/stagefright
- c – decltype(std)是否合法,是否有目的?
- ios – google admob undefined symbol for architecture a
- PostgreSQL 的痛点
- 正则表达式30分钟入门教程
- 如何配置CruiseControl.net来构建共同依赖的项目?