Arvid Warnecke created MESOS-3128:
-------------------------------------

             Summary: state.json can not differentiate resources 
                 Key: MESOS-3128
                 URL: https://issues.apache.org/jira/browse/MESOS-3128
             Project: Mesos
          Issue Type: Bug
          Components: json api, master, slave
    Affects Versions: 0.22.1
            Reporter: Arvid Warnecke
            Priority: Minor


The information about available resources on the slave listed in the state.json 
only shows the last set value for a resource.
It is possible to set resources for different mesos roles, but they don't 
appear in the state.json.

If you set something like this:
{code:xml}
cpus(*):24;mem(*):1024;ports(*):[31000-32000];ports(cassandra):[9420]
{code}

You get the following in the state.json:
{code:xml}
"resources": {
     "cpus": 24,
     "mem": 1024,
     "ports": [9420]
}
{code}

Both port ranges in this example are available, but it's difficult to check if 
your defined resources really are available in Mesos.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to