On 12/4/2017 7:33 AM, Steve Pruitt wrote:
I edited /etc/default/solr.in.sh to list my ZK hosts and I uncommented 
ZK_CLIENT_TIMEOUT leaving the default value of 15000.

The default is 15 seconds, most of the example configs that Solr includes have it increased to 30 seconds. IMHO, 15 seconds is a relative eternity.

I am not sure if I need to set the SOLR_HOST.  This is not a production 
install, but I am running with three ZK machines and three Solr machines in the 
cluster.
The comment states to use it to "exposed to cluster state".  I'm not sure what 
"cluster state" means exactly and not sure if the default localhost is ok.

SOLR_HOST is used to decide what hostname each Solr instance will use when it registers itself into ZK, so that the cloud client (or the cloud itself) can find all the hosts for load balancing or distributed requests.

If you don't define this, Solr will use Java APIs to figure out the primary IP address of the machine, and it will use that when registering itself into the SolrCloud clusterstate in ZK. Sometimes the Java APIs will choose the wrong address, especially on multi-homed systems, which is why Solr provides a way to manually declare the hostname.

Thanks,
Shawn

Reply via email to