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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |