hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Burton" <bur...@spinn3r.com>
Subject Re: Simpler ZooKeeper event interface....
Date Wed, 07 Jan 2009 20:12:18 GMT
>
> 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

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