solrcore.properties定義server是不是master

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. spa

好比能夠在其中定義 code

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

and in slave orm

#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.
相關文章
相關標籤/搜索