Re: Mesos supports to get the available total resource per-roles ?

2016-02-27 Thread Adam Bordelon
"*" is not a standard role, but instead represents unreserved resources that will be offered to any framework, according to (weighted, hierarchical) DRF. So it doesn't make sense to talk about the resources "reserved" for "*". Rather, if you take the total cluster resources, and subtract the

Re: Mesos supports to get the available total resource per-roles ?

2016-02-23 Thread 陈强
yes, maybe we can calc all the resource that share the same role name from '/state' and add the field into '/roles' payload, but there's a role named "*", how to get that role's total reserved resource, although it provides the used info from '/roles'. On 2016年02月23日 10:15, Klaus Ma wrote:

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Klaus Ma
So I think you need to calculate it from `/master/state`; `/master/state` has provided the reserved resources per-slave per-role. Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer Platform OpenSource Technology, STG, IBM GCG +86-10-8245 4084 | klaus1982...@gmail.com | http://k82.me

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread 陈强
@Klaus, The total resources reserved by this role I think. . On 2016年02月22日 19:33, Klaus Ma wrote: @陈强,How do you define the "total resources"? All resources of frameworks in the same role, the deserved resources of role it should get, or the total resources reserved by this role? Da

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Klaus Ma
@陈强,How do you define the "total resources"? All resources of frameworks in the same role, the deserved resources of role it should get, or the total resources reserved by this role? Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer Platform OpenSource Technology, STG, IBM GCG

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Guangya Liu
Does /master/state endpoint help? This can get all resources per-role in the cluster, including total, used, reserved etc per role. *"reserved_resources"*: { *"r2"*: { *"mem"*: 0, *"disk"*: 0, *"cpus"*: 8 }, *"r1"*: { *"mem"*:

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Yongqiao Wang
ything. -- -- Original -- From: "";<chenqi...@qiyi.com>; Date: Mon, Feb 22, 2016 05:50 PM To: "dev"<dev@mesos.apache.org>; Subject: Re: Mesos supports to get the available total resource per-roles ? Currently, no en

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread 陈强
elf, then you can control everything. -- -- Original -- From: "haosdent";<haosd...@gmail.com>; Date: Mon, Feb 22, 2016 05:19 PM To: "dev"<dev@mesos.apache.org>; Subject: Re: Mesos supports to get the availa

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Yongqiao Wang
. -- -- Original -- From: "";<chenqi...@qiyi.com>; Date: Mon, Feb 22, 2016 05:37 PM To: "dev"<dev@mesos.apache.org>; Subject: Re: Mesos supports to get the available total resource per-roles ? the "/roles" reports the

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread 陈强
the "/roles" reports the "used resource" rather than the "available resource", and the "available resource" doesn't mean "total mesos cluster resource" minus "used resource", it should be "total mesos cluster resource per every roles" minus "the used resource", I think. So, there anyway to get

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread Yongqiao Wang
il.com>; Date: Mon, Feb 22, 2016 05:19 PM To: "dev"<dev@mesos.apache.org>; Subject: Re: Mesos supports to get the available total resource per-roles ? Oh, sorry. Should be /master/roles endpoint. On Mon, Feb 22, 2016 at 5:17 PM, haosdent <haosd...@gmail.com> wrote: &g

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread haosdent
Oh, sorry. Should be /master/roles endpoint. On Mon, Feb 22, 2016 at 5:17 PM, haosdent wrote: > Hi, I think master state endpoint have already contain this. > > On Mon, Feb 22, 2016 at 5:11 PM, 陈强 wrote: > >> Hi all, >> >> Does Mesos support to get the

Re: Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread haosdent
Hi, I think master state endpoint have already contain this. On Mon, Feb 22, 2016 at 5:11 PM, 陈强 wrote: > Hi all, > > Does Mesos support to get the available total resource for every roles > now? if don't, who are focusing on this? thanks. > > -- > > Best Regards, >

Mesos supports to get the available total resource per-roles ?

2016-02-22 Thread 陈强
Hi all, Does Mesos support to get the available total resource for every roles now? if don't, who are focusing on this? thanks. -- Best Regards, ChenQiang