zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jürgen Wagner (DVT)" <juergen.wag...@devoteam.com>
Subject Re: how do i have more connections than maxClientCnxns?
Date Thu, 06 Nov 2014 20:54:05 GMT
Well, looks like you have then multiple clients connecting to this
Zookeeper instance. The documentation says:

maxClientCnxns

    (No Java system property)

    Limits the number of concurrent connections (at the socket level)
    that *a single client, identified by IP address*, may make to a
    single member of the ZooKeeper ensemble. This is used to prevent
    certain classes of DoS attacks, including file descriptor
    exhaustion. The default is 60. Setting this to 0 entirely removes
    the limit on concurrent connections.


So, for a single client (IP address), 1024 would be the maximum. If you
have several clients connecting, the actual value could  be a multiple
(1024 times the number of unique IP addresses). You may want to check in
the netstat -an what the IP addresses of the clients are and count them
by client.

Cheers,
--Jürgen

On 06.11.2014 20:46, Timothy Ehlers wrote:
>  echo mntr |nc zk-server-number1-champion-server-of-servering-1.mydomain.net
> 2181 |grep num_alive
> zk_num_alive_connections        1540
>
> And again to verify the setting:
>  grep maxClien /etc/zookeeper/zoo.cfg
> maxClientCnxns=1024
>
>


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message