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:45:18 UTC

[jira] [Created] (MESOS-4751) Convenient API for getting free resources by role

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)