Reputation: 3787
Is there a way I can watch for change of leadership using Curator? When the leader changes I need all of the followers to know that this has happened so that they can discover who the new leader is. It seems like something standard that the followers would want to know who the leader is, but I cannot work it out.
Upvotes: 3
Views: 363
Reputation: 3787
It's possible to watch for changes by using a path cache based on the path of the leader selector. When an event occurs on this path then their are probably new nodes, less nodes or a new leader.
Upvotes: 1