You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jens Brandt <br...@docoloc.de> on 2015/09/08 23:09:17 UTC

Source address of zookeeper connection

Hi,

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?

Regards,
  Jens

Re: Source address of zookeeper connection

Posted by Shawn Heisey <ap...@elyograg.org>.
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