zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: zookeeper leadership election example application
Date Mon, 28 Nov 2011 16:41:35 GMT
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 <cyberroadie@gmail.com>wrote:

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

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