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

2016-02-23 Thread Neil Conway (JIRA)

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

Neil Conway updated MESOS-4751:
---
Labels: mesosphere  (was: )

> 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
>  Labels: mesosphere
>
> /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)


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

2016-02-23 Thread Michael Gummelt (JIRA)

 [ 
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)


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

2016-02-23 Thread Michael Gummelt (JIRA)

 [ 
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)