简体   繁体   中英

Marathon Ruby SDK to get the number of nodes

I am using Marathon Ruby SDK to get the number of nodes registered with the DC/OS cluster. But I am not getting any method which can return me the number of nodes registered with the cluster. Marathon SDK: https://www.rubydoc.info/gems/marathon-api/

Any idea how can I get the registered nodes? Thanks in advance.

Marathon has no idea how many nodes are registered since it does not need this inforamtion to perform its tasks.

The only way to get number of registered nodes is via Mesos Master API :5050/slaves

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM