On 9/8/2015 3:09 PM, Jens Brandt wrote: > We have multihomed hosts running solr 5.2.1 as well es external zookeeper > instances. In solr.in.sh, the value of SOLR_HOST is set correctly to the > hostname with the correct IP address that must be used. However, in the > zookeeper logs I find another IP address used as source address for the > connection from the solr instances to the zookeeper nodes. Can anybody tell > me how I can define the network source address used by solr for the > connection to the zookeeper nodes?
This is very likely left up to the operating system. As far as I know, there is nothing in Solr that sets the source interface for any communication. Most operating systems will source the packet with the address of whichever interface is used to route to the destination, which is most commonly the default route. I had hoped to find that there was a system property honored by the Zookeeper client that specifies the source address, but I was not able to find anything. I have asked the zookeeper mailing list whether there is any way to accomplish this. The SOLR_HOST variable just sets the value that SolrCloud will use to register itself in the clusterstate. Thanks, Shawn