5

Is there any way to get the IP of current leading Mesos-master from the quorum? Does any variable stores that value?

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
Madhurima Mishra
  • 1,063
  • 3
  • 14
  • 27

2 Answers2

4

yes. Master information stored in zk as json format. You could get the leader master from zk. Please refer to this article http://codetrips.com/2015/08/16/apache-mesos-leader-master-discovery-using-zookeeper-part-2/ to see how to get it. Macro is the author of add Mesos master json format to zk. You could use the libray https://github.com/massenz/zk-mesos to get leader maste from zk directly.

haosdent
  • 965
  • 2
  • 8
  • 17
1

You can also query the http://{any mesos master}/master/redirect endpoint and parse the current leading master's IP address out of the Location header that is returned.

iZ.
  • 4,951
  • 5
  • 23
  • 16