You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by 陈强 <ch...@qiyi.com> on 2016/01/18 07:50:01 UTC

Support Metrics of Framework's Resource & Role's Resource now?

I'm using Mesos0.25.0 now,
Would everyone is starting developing on the support of metrics for 
framework & role 's resource? or they have been already supported in the 
following version?
As far as I know, we can get the metrics of framework status from 
/metrics/snapshot, but wouldn't get the details of how much resources 
every framework owns, as well as we wouldn't get the how much resource 
every role owns.
So, does someone are working on these?
Thanks.

-- 
Best Regards,
Chen, Qiang


Re: Support Metrics of Framework's Resource & Role's Resource now?

Posted by 陈强 <ch...@qiyi.com>.
Hi Yongqiao,

I add two requirements for the MESOS-4213, please review, thanks.

chenqiang 
<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=chenqiang>added 
a comment -1 hour ago-edited

For the /roles, I suggest add two fields for one type role to represent 
how much resource is in use now and how much left if many frameworks 
share the same role, as frameworks would exist in one cluster that share 
same role.

<https://issues.apache.org/jira/browse/MESOS-4213#>
chenqiang 
<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=chenqiang>added 
a comment -26 minutes ago-edited

Suggest to add another additional RestAPI /framework to get framework info.
In the response payload should contain the resources of 
allocated/available/totals for certain type framework.
There another case that one certain framework may have some roles. e.g, 
marathon would work as marathon_role1, marathon_role2 as long as user 
set different roles for them. So, if we want to get resource metrics for 
marathon, it should accumulate all kinds of roles.



On 2016年01月18日 15:25, 陈强 wrote:
> Thanks Fan & Yongqiao,
>
> Yes, I tried /roles would get resources info, but can't get 
> framework's by /frameworks.
> Good epic of MESOS-4213!!
>
> On 2016年01月18日 15:18, Yongqiao Wang wrote:
>> As far as I know, /roles endpoint can show the resources allocated 
>> (used and offered) by each framework, and there is no endpoint now 
>> can show the resources owned (static/dynamic reservation, quota 
>> configuration, created volumes, etc...) by each roles.
>>
>>
>> We are plan to have a discussion for this later in JIRA MESOS-4213, 
>> if you have more requirements and questions, you can append here. 
>> Thanks!
>>
>>
>>
>> ------------------
>> Regards!
>> Grady YQ. Wang(王勇桥)
>> ----------------------------------------------------------------------
>> Software Engineer Of IBM Platform Computing
>> E-mail: yqwyq@cn.ibm.com
>> WeChat ID: gradyYQwang
>> Address: 3/F,No.42 GAO XIN LIU ROAD,Xian,Shanxi 710075 China
>> If you can control yourself, then you can control everything.
>> ----------------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>> ------------------ Original ------------------
>> From:  "陈强";<ch...@qiyi.com>;
>> Date:  Mon, Jan 18, 2016 02:50 PM
>> To:  "dev"<de...@mesos.apache.org>;
>>
>> Subject:  Support Metrics of Framework's Resource & Role's Resource now?
>>
>>
>>
>> I'm using Mesos0.25.0 now,
>> Would everyone is starting developing on the support of metrics for
>> framework & role 's resource? or they have been already supported in the
>> following version?
>> As far as I know, we can get the metrics of framework status from
>> /metrics/snapshot, but wouldn't get the details of how much resources
>> every framework owns, as well as we wouldn't get the how much resource
>> every role owns.
>> So, does someone are working on these?
>> Thanks.
>>
>

-- 
陈强

技术产品中心 计算云 弹性计算
手机:+86 15900964316
分机:8377


Re: Support Metrics of Framework's Resource & Role's Resource now?

Posted by 陈强 <ch...@qiyi.com>.
Thanks Fan & Yongqiao,

Yes, I tried /roles would get resources info, but can't get framework's 
by /frameworks.
Good epic of MESOS-4213!!

On 2016年01月18日 15:18, Yongqiao Wang wrote:
> As far as I know, /roles endpoint can show the resources allocated (used and offered) by each framework,  and there is no endpoint now can show the resources owned (static/dynamic reservation, quota configuration, created volumes, etc...) by each roles.
>
>
> We are plan to have a discussion for this later in JIRA MESOS-4213, if you have more requirements and questions, you can append here. Thanks!
>
>
>
> ------------------
> Regards!
> Grady YQ. Wang(王勇桥)
> ----------------------------------------------------------------------
> Software Engineer Of IBM Platform Computing
> E-mail: yqwyq@cn.ibm.com
> WeChat ID: gradyYQwang
> Address: 3/F,No.42 GAO XIN LIU ROAD,Xian,Shanxi 710075 China
> If you can control yourself, then you can control everything.
> ----------------------------------------------------------------------
>
>
>   
>
>
>
>
> ------------------ Original ------------------
> From:  "陈强";<ch...@qiyi.com>;
> Date:  Mon, Jan 18, 2016 02:50 PM
> To:  "dev"<de...@mesos.apache.org>;
>
> Subject:  Support Metrics of Framework's Resource & Role's Resource now?
>
>
>
> I'm using Mesos0.25.0 now,
> Would everyone is starting developing on the support of metrics for
> framework & role 's resource? or they have been already supported in the
> following version?
> As far as I know, we can get the metrics of framework status from
> /metrics/snapshot, but wouldn't get the details of how much resources
> every framework owns, as well as we wouldn't get the how much resource
> every role owns.
> So, does someone are working on these?
> Thanks.
>

-- 
陈强

技术产品中心 计算云 弹性计算
手机:+86 15900964316
分机:8377


Re: Support Metrics of Framework's Resource & Role's Resource now?

Posted by Yongqiao Wang <gr...@foxmail.com>.
As far as I know, /roles endpoint can show the resources allocated (used and offered) by each framework,  and there is no endpoint now can show the resources owned (static/dynamic reservation, quota configuration, created volumes, etc...) by each roles.


We are plan to have a discussion for this later in JIRA MESOS-4213, if you have more requirements and questions, you can append here. Thanks!



------------------
Regards!
Grady YQ. Wang(王勇桥)
----------------------------------------------------------------------
Software Engineer Of IBM Platform Computing
E-mail: yqwyq@cn.ibm.com
WeChat ID: gradyYQwang
Address: 3/F,No.42 GAO XIN LIU ROAD,Xian,Shanxi 710075 China
If you can control yourself, then you can control everything.
----------------------------------------------------------------------


 




------------------ Original ------------------
From:  "陈强";<ch...@qiyi.com>;
Date:  Mon, Jan 18, 2016 02:50 PM
To:  "dev"<de...@mesos.apache.org>; 

Subject:  Support Metrics of Framework's Resource & Role's Resource now?



I'm using Mesos0.25.0 now,
Would everyone is starting developing on the support of metrics for 
framework & role 's resource? or they have been already supported in the 
following version?
As far as I know, we can get the metrics of framework status from 
/metrics/snapshot, but wouldn't get the details of how much resources 
every framework owns, as well as we wouldn't get the how much resource 
every role owns.
So, does someone are working on these?
Thanks.

-- 
Best Regards,
Chen, Qiang

Re: Support Metrics of Framework's Resource & Role's Resource now?

Posted by "Du, Fan" <fa...@intel.com>.

On 2016/1/18 14:50, 陈强 wrote:
> but wouldn't get the details of how much resources every framework owns,
> as well as we wouldn't get the how much resource every role owns.

curl MASTER_IP:5050/roles |python -mjson.tool

{
     "roles": [
         {
             "frameworks": [],
             "name": "*",
             "resources": {
                 "cpus": 0,
                 "disk": 0,
                 "mem": 0
             },
             "weight": 1.0
         },
         {
             "frameworks": [
                 "2caebb14-161f-4941-b8ab-8990cef01ac0-0000"
             ],
             "name": "busybox",
             "resources": {
                 "cpus": 0,
                 "disk": 0,
                 "mem": 0
             },
             "weight": 1.0
         },
         {
             "frameworks": [],
             "name": "ubuntu",
             "resources": {
                 "cpus": 0,
                 "disk": 0,
                 "mem": 0
             },
             "weight": 1.0
         }
     ]
}

also you can try to get framework info by:
curl MASTER_IP:5050/frameworks |python -mjson.tool