@Haosdent, what does http://10.132.46.71:5050/roles mean? shouldn’t that tell 
us all resources that framework with `dev` role takes, both from `dev` and `*` 
role? It doesn’t mean resources are consumed from `dev` role, right?
--
Best Regards,

GaoJin CAO 
ChinaMobile(Suzhou) R&D
Mail:caogaojin at cmss.chinamobile.com <http://cmss.chinamobile.com/>
> On May 1, 2016, at 16:02, caogaojin <[email protected]> wrote:
> 
> 
> ```
> [root@localhost ~]# curl http://10.132.46.71:5050/roles 
> <http://10.132.46.71:5050/roles> | python -m json.tool
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
> Current
>                                  Dload  Upload   Total   Spent    Left  Speed
> 100   250  100   250    0     0  46772      0 --:--:-- --:--:-- --:--:-- 50000
> {
>     "roles": [
>         {
>             "frameworks": [],
>             "name": "*",
>             "resources": {
>                 "cpus": 0,
>                 "disk": 0,
>                 "mem": 0
>             },
>             "weight": 1.0
>         },
>         {
>             "frameworks": [
>                 "439a851d-aa09-47af-bc68-d5588dc9f5da-0002"
>             ],
>             "name": "dev",
>             "resources": {
>                 "cpus": 1.0,
>                 "disk": 0,
>                 "mem": 128.0,
>                 "ports": "[31994-31994]"
>             },
>             "weight": 1.0
>         }
>     ]
> }
> ```

Reply via email to