You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Gummelt (JIRA)" <ji...@apache.org> on 2016/02/23 23:46:18 UTC
[jira] [Updated] (MESOS-4751) Convenient API for getting free
resources by role
[ https://issues.apache.org/jira/browse/MESOS-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Gummelt updated MESOS-4751:
-----------------------------------
Description:
/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.:
{code:javascript}
"resources": [
{
"cpus"
"disk"
"mem"
"role"
"used"
}
]
{code}
It would make it easier to support arbitrary queries if the data were normalized as such.
was:
/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.
> 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.:
> {code:javascript}
> "resources": [
> {
> "cpus"
> "disk"
> "mem"
> "role"
> "used"
> }
> ]
> {code}
> 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)