New option WithPingCountWithinSessionTimeout to configurate how many pings within a session timeout.
Default ping's count were only two pings within a session timeout, it is not enough.
ZK client want to know ping is failed sonner rather than later somethings.
Generally, set your session(or election) timeout to at least 5 to 10 times your heartbeat interval in a distributed system.
New option WithPingCountWithinSessionTimeout to configurate how many pings within a session timeout.
Default ping's count were only two pings within a session timeout, it is not enough.
ZK client want to know ping is failed sonner rather than later somethings.
Generally, set your session(or election) timeout to at least 5 to 10 times your heartbeat interval in a distributed system.