Force leader

2014-05-21 Thread Corey Nolet
I have a cluster which is electing a single leader to perform operations on a node until the node is deemed to be unhealthy. At this time, the leader revokes itself and another leader is elected to perform the operations. There are times, however, when I need the ability to force a specific

Re: Force leader

2014-05-21 Thread Jordan Zimmerman
I’d need more details to answer concretely. But, this sounds like a simple lock. Have the process that wants to be leader acquire an InterProcessMutex. -JZ From: Corey Nolet cjno...@gmail.com Reply: user@curator.apache.org user@curator.apache.org Date: May 21, 2014 at 12:12:35 PM To: user

Re: Force leader

2014-05-21 Thread Corey Nolet
It it helps, here's a rough design of the project: https://github.com/calrissian/conductor On Wed, May 21, 2014 at 1:33 PM, Corey Nolet cjno...@gmail.com wrote: Jordan, Thanks for your quick response! So what I am building is a faul-tolerant framework for linux systems to watch over some