Hello,

solr/replication?command=disablepoll disables replication on slave(s). However 
it is not persistent. After solr/tomcat restart, slave(s) will continue 
polling. 

Is there a built-in way to disable replication on slave side in a persistent 
manner?

Currently I am using system property substitution along with 
solrcore.properties file to simulate this.

<lst name="slave">
    <str name="enable">${enable.slave:false}</str> 

#solrcore.properties in slave
enable.master=true

And modify solrcore.properties with a custom solr request handler after the 
disablepoll command, to make it persistent. It seems that there is no existing 
mechanism to write solrconfig.properties file, am I correct?

Thanks,
Ahmet




      

Reply via email to