Ian Downes created MESOS-1185:
---------------------------------

             Summary: Reorganize cgroup layout
                 Key: MESOS-1185
                 URL: https://issues.apache.org/jira/browse/MESOS-1185
             Project: Mesos
          Issue Type: Task
          Components: isolation
    Affects Versions: 0.17.0, 0.18.0
            Reporter: Ian Downes
             Fix For: 0.19.0


The proposed layout has the following advantages:
1. Easier breakdown of accounting (and isolation) of resources
2. Support multiple slaves (MESOS-1183)
3. Support nesting slaves (MESOS-1184)

Using the default values of the relevant flags and the cpu controller
MESOS_CGROUPS_HIERARCHY = /sys/fs/cgroup
MESOS_CGROUPS_ROOT = mesos

each slave would have a separate cgroup:
{noformat}
/sys/fs/cgroup/cpu/mesos/{SlaveID}
{noformat}

Under the slave's cgroup there would be a 'slave' cgroup which would contain 
the slave process (and child processes like mesos-fetcher)
{noformat}
/sys/fs/cgroup/cpu/mesos/{SlaveID}/slave
{noformat}

And a 'containers' cgroup which would contain all containers as child cgroups
{noformat}
/sys/fs/cgroup/cpu/mesos/{SlaveID}/containers/{ContainerID}
{noformat}

Multiple slaves would be differentiated by their SlaveIDs.

Nested slaves would have an extended MESOS_CGROUP_ROOT which contained the 
parent's SlaveID.

Such a layout would enable answering resource usage questions like:
1. Total usage of all slaves
2. Total usage of a single slave
3. Usage of a slave process
4. Total usage of all containers of a slave
5. Usage of a particular container (what we have now)

And also setting limits to any of the above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to