What is the Event for a Shard Leadership Change?

asked 2016-01-07 08:41:26 -0700

DeJuan gravatar image

updated 2016-01-08 05:16:37 -0700

We are looking into being able to register to listen for cluster shard leadership changes using Lithium's REST API. However, we don't know what the event we should be listening for actually is. Where should we subscribe and what should we listen for to find out when the leadership of a shard changes?

I'm asking under the assumption that there's a specific event for this if you register DataChangeListeners on the appropriate locations. I am pretty sure you would need to have listeners registered for all three cluster members, but I'm not sure of the exact details.

edit retag flag offensive close merge delete