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 On Tue, Feb 23, 2016 at 9:28 AM, 陈强 <chenqi...@qiyi.com> wrote: > @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 (Klaus), Ma (马达) | PMP® | Advisory Software Engineer >> Platform OpenSource Technology, STG, IBM GCG >> +86-10-8245 4084 | klaus1982...@gmail.com | http://k82.me >> >> On Mon, Feb 22, 2016 at 6:07 PM, Guangya Liu <gyliu...@gmail.com> wrote: >> >> 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"*: 8000, >>> >>> *"disk"*: 0, >>> >>> *"cpus"*: 0 >>> >>> } >>> >>> } >>> >>> Thanks, >>> >>> Guangya >>> >>> On Mon, Feb 22, 2016 at 5:11 PM, 陈强 <chenqi...@qiyi.com> 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, >>>> ChenQiang >>>> >>>> >>>> > -- > 陈强 > > 技术产品中心 计算云 弹性计算 > 手机:+86 15900964316 > 分机:8377 > >