Is there a way to get the IP address of the current leading meso master from the quorum? Does any variable store a value?
Yes. The main information is stored in zk format as json. You can get the lead wizard from zk. Please refer to this article http://codetrips.com/2015/08/16/apache-mesos-leader-master-discovery-using-zookeeper-part-2/ to find out how to get it. Macro is the author of adding the mesos master json format to zk. You can use libray https://github.com/massenz/zk-mesos to get leadership from zk directly.
You can also request the endpoint http://{any mesos master}/master/redirect and http://{any mesos master}/master/redirect current main main IP address from the returned Location header.
http://{any mesos master}/master/redirect
Location
Source: https://habr.com/ru/post/1236800/More articles:How to get css-pixel width (media request) using Javascript? - javascriptWhy does a regex expression containing "\" work without it being the source string. - pythonAsyncInvoker does not release a thread - javaBlock POST requests through S3 + CloudFlare? - amazon-s3ASP.Net 5 rc1 Localization in Views - c #What happens faster: SUM over NULL or more than 0? - sql-serverIdentify objects requiring partitioning - sql-serverHow to solve AccessDeniedException in elasticsearch? - javaGIT SVN: fetching a recreated SVN branch without merging the parent incorrectly - gitNUnit 3: OneTimeSetUp not working - .netAll Articles