zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Burton" <bur...@spinn3r.com>
Subject Re: Does session expiration only happen during total ensemble failure or network split?
Date Wed, 07 Jan 2009 20:39:07 GMT
>
> The ZK ensemble leader expires the client session if it doesn't hear from
> the client w/in the timeout specified by the client when the session was
> established.
>
> A client will disconnect from a server in the ensemble and attempt
> reconnect to another server in the ensemble if it doesn't hear from the
> server w/in 2/3 of the specified session timeout.
>

OK... I got that part.  The issue I'm running into now though is that my
sessions aren't actually timing out when I shutdown all servers in an
ensemble.

One solution/hack would be to record how long you've been disconnected and
assume that your session has been expired.

Kevin

-- 
Founder/CEO Spinn3r.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com

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