Mesos implemented the official ZK election recipe
<https://zookeeper.apache.org/doc/current/recipes.html#sc_leaderElection>,
so you should expect a list of ephemeral ZNones under your election path
(often `mesos` but up to your config).

The one with lowest suffix sequence number has the content of leader
address (in JSON format)

Hope this is useful.

On Mon, Mar 5, 2018 at 9:54 PM, Ajay V <ajayv...@gmail.com> wrote:

> Hello,
>
> Is there a write up somewhere that I may have missed finding that talks
> about how to find the leading master given the zookeeper url? I can find
> that there are json.info_.. MasterInfo jsons available in zk, but how can I
> translate this to figure out the leading master at any given point in time?
>
> Regards,
> Ajay
>



-- 
Cheers,

Zhitao Li

Reply via email to