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 [email protected]
Reply: [email protected] [email protected]
Date: May 21, 2014 at 12:12:35 PM
To: user [email protected]
Subject:  Force leader  

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 leader. 
How would I implement something like this? I really don't want to have to 
cascade through all the other nodes and tell them to revoke their leadership 
because they will each try to run some initialization upon becoming the leader 
and that would waste resources.

Any ideas?

Thanks!

Reply via email to