> > My assumption is the following - if I'm connected to multiple ZK servers, > then assuming the leader election recipe given in the docs, the leader needs > to only demote itself if its session expires. Of course, doing the same on > disconnect does not violate safety, it just seems too pessimistic. In the > case of followers, a disconnected event would mean that they will have to > wait for reconnection before being able to determine if one of them should > in fact be the leader. >
That was my fault.... it's too pessimistic. A 1ms disconnect doesn't mean you should not be the leader, especially if becoming a leader is very expensive in terms of computational resources. Kevin -- Founder/CEO Spinn3r.com Location: San Francisco, CA AIM/YIM: sfburtonator Skype: burtonator Work: http://spinn3r.com