title: Resolving the Mesos Leading Master
body: <p>We're using Mesos to run jobs on a cluster.  We're using haproxy to point, e.g.,  <code>mesos.seanmcl.com</code> to a Mesos Master.  </p>
  
  <p>If that Master happens to not be the leader, the UI will redirect the browser, after a <strong>delay</strong>, to the leader so you can see the running jobs.  For various reasons (UI speed, avoiding ports blocked by a firewall), I'd really like to programmatically discover the host with the leader.  I can not figure out how to do this.  </p>
  
  <p>I grepped around in the Zookeeper files for Mesos, but only found small bits of host information like the <em>IP address</em>.  Is there any way, via Mesos CLI, Zookeeper CLI, etc. to find the Mesos Leading Master?</p>