On 10/9/2018 12:54 PM, Karthik K G wrote:
We have a scenario where we give the Zookeeper FQDN to our Solr Application.
When we use this we are seeing that zookeeper is accepting connections from
all Solr nodes every minute.
I'm more familiar with the Solr side than the ZK side. Here's a ZKHOST
string that might be given to Solr, to connect to a three-node ensemble:
zoo1.example.com:2181,zoo2.example.com:2181,zoo3.example.com:2181/solr
The way I understand things, the ZK client (which is embedded in Solr)
should open one TCP connection to each server listed, and leave those
connections open indefinitely. I have not examined network traffic to
verify this, but that is my understanding. So if my understanding is
correct, then the following statement should be true:
If you're seeing lots of connections, then you may have some kind of
problem, where services are being restarted frequently, or where
connections are getting terminated prematurely outside the control of
either ZK or Solr.
Thanks,
Shawn