zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alen Čaljkušić <scuderiafore...@gmail.com>
Subject Session timeout parameter question
Date Thu, 30 Oct 2014 12:05:04 GMT
Hi ZooKeeper community

I have a question about session timeout parameter. Quote from ZooKeeper
book by Flavio Junqueira and Benjamin Reed:

"One important parameter you should set when creating a session is the
session timeout, which is the amount of time the ZooKeeper service allows a
session before declaring it expired. If the service does not see message
associated to a given session during time t, it declares session expired.
On the client side, if it has heard nothing from the server at 1/3 of t, it
sends a heartbeat message to the server. At 2/3 of t, the ZooKeeper client
starts looking for a different server, and it has another 1/3 of t to find
one."

Does this imply that network failure between client and all servers lasting
2/3 of session timeout parameter may cause session expired?

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