[
https://issues.apache.org/jira/browse/MESOS-4769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Gummelt updated MESOS-4769:
-----------------------------------
Labels: mesosphere (was: )
> Update state endpoints to allow clients to determine how many resources for a
> given role have been used
> -------------------------------------------------------------------------------------------------------
>
> Key: MESOS-4769
> URL: https://issues.apache.org/jira/browse/MESOS-4769
> Project: Mesos
> Issue Type: Task
> Affects Versions: 0.27.1
> Reporter: Michael Gummelt
> Labels: mesosphere
>
> AFAICT, this is currently impossible. Say I have a cluster with 4CPUs
> reserved for {{spark}} and 4CPUs unreserved, I have a framework registered as
> {{spark}}, and I would like to determine how many CPUs reserved for {{Spark}}
> have been used. AFAIK, there are two endpoints with interesting information:
> {{/master/state}} and {{/master/roles}}. Both endpoints tell me how many
> resources are used by the framework registered as {{spark}}, but it doesn't
> tell me which role those resources belong to (i.e. are they reserved or
> unreserved).
> A simple fix would be to update {{/master/roles}} to split out resources into
> "reserved" and "unreserved". However, this will fail to solve the problem if
> (and hopefully when) Mesos supports multi-role frameworks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)