Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> zookeeper leadership election example application

Copy link to this message
Re: zookeeper leadership election example application
The idea is that all the leader candidates try to create the same ephemeral
file.  One wins.  That one is the winner.  On disconnect, that leader
pauses its services.  On reconnect it either continues or is notified of
session expiration.  All the other candidates watch the file and if it
vanishes, they try again.

This is very simple and doesn't depend on sequential ephemerals.  It is
subject to notification storms and the so-called herd effect, but for <50
candidates this doesn't much matter.

On Mon, Nov 28, 2011 at 8:29 AM, Olivier Van Acker <[EMAIL PROTECTED]>wrote:

> What is single file leader election? A quick search on google didn't come
> up with any results :-(