[ 
https://issues.apache.org/jira/browse/MESOS-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Gummelt updated MESOS-4751:
-----------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>
> /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)

Reply via email to