Hi there, I am willing to explore some client connection balancing strategiesbetween ZK server.
I have seen there is a very old ticket ([ZOOKEEPER-571])with no progress and I posted there some ideas. IDEA 1: Periodically close the ZK client socket, forcing that clientneed to reconnect. This is easy to implement and eventually balance conns. Goodenough at least in my opinion. Some minor dispersion could be added for firstdisconnection to spread disconnections. Maybe it is just enough to offer the “closeSocket”API and then clients can build from there, OR provide a maxConnTTL parameterand ZK clients automates periodic disconnections. IDEA 2: ZK to provide an aggregated views of server clientconnections, and an API able to trigger rebalancing (similar what “updatServerList”API is doing on new servers). More complex to implement, BUT faster torebalance and avoids unneeded connections closing. I would appreciate some feedback on them. Regards, Evaristo
