Michael Gummelt created MESOS-4751:
--------------------------------------
Summary: Convenient API for getting free resources by role
Key: MESOS-4751
URL: https://issues.apache.org/jira/browse/MESOS-4751
Project: Mesos
Issue Type: Task
Components: json api
Reporter: Michael Gummelt
/master/roles provides allocation by role, but it doesn't provide the total
resources assigned to each role, so I can't compute the remaining resources.
It seems natural that this endpoint should also include the total assigned to
each role.
Also, please consider normalizing the data in `state.json`. e.g.:
{{
"resources": [
{
"cpus"
"disk"
"mem"
"role"
"used"
}
]
}}
It would make it easier to support arbitrary queries if the data were
normalized as such.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)