solrcore.properties定义server是否是master

2019-03-27 01:20|来源: 网路

If the configuration directory for a Solr core contains a file named solrcore.properties that file can contain any arbitrary user defined property names and values using the Java standard properties file format, and those properties can be used as variables in the XML configuration files for that Solr core.

比如可以在其中定义

#solrcore.properties in master
enable.master=true
enable.slave=false

and in slave

#solrcore.properties in slave 
enable.master=false 
enable.slave=true
Each core has its own solrcore.properties that is located under the conf directory of each core's instance directory.


转自:http://my.oschina.net/u/138995/blog/194917

相关问答

更多