If you are changing the IP of a host running Zookeeper, it can be an issue.
It depends on the version of zookeeper that you are using. There was an
issue with ZK not re-resolving IP addresses on connection errors, but it
was fixed in 3.4.13 (
https://issues.apache.org/jira/plugins/servlet/mobile#issue/ZOOKEEPER-2184 ). If you are using 3.5.x, you should be safe as the fix was made there as
You should be fine doing this for Solr nodes, but Java has weird default
settings for caching DNS, where it can cache a DNS resolution infinitely
and never refresh it. Therefore I'd say you're safest if you do a rolling
restart of your cluster, and any clients using solrJ. (Unless you make sure
that you have the correct Java DNS cache settings)
> If a SOLR or Zookeeper host is replaced such that the hostname comes back
> it now resolves to a different IP, are SOLR nodes and SOLRJ clients
> to just continue working?
> I know that in this case replicas need to be re-created (and stale ones
> deleted). But I'm wondering if SOLRJ clients and/or other SOLR nodes need
> to be restarted to pick up the hostname->IP change.
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html >