You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Ian Downes (JIRA)" <ji...@apache.org> on 2014/01/21 19:49:22 UTC

[jira] [Commented] (MESOS-926) Document change to separate cgroup mounts

    [ https://issues.apache.org/jira/browse/MESOS-926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877718#comment-13877718 ] 

Ian Downes commented on MESOS-926:
----------------------------------

Preliminary documentation for running the containerizer tests.

The old configuration had the required controllers (cpu, cpuacct, memory, and freezer, ...) mounted to a single mount point specified by the --cgroups_hierarchy flag (defaults to /cgroup).
{noformat}
$ cat /proc/mounts  | grep cgroup # old mount configuration
cpuacct,freezer,memory,cpu /cgroup cgroup rw,relatime,freezer,memory,cpuacct,cpu 0 0
{noformat}

The containerizer refactor requires the cgroup controllers to be mounted separately to *subdirectories beneath* the cgroups_hierarchy (still defaults to /cgroup).
{noformat}
$ cat /proc/mounts | grep cgroup # new mount configuration
cgroup /cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /cgroup/net_cls cgroup rw,relatime,net_cls 0 0
cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0
{noformat}

Depending on distribution, this can be configured in {{/etc/cgconfig.conf}}.
{noformat}
$ cat /etc/cgconfig.conf | grep -v "#"
mount {
        cpuset  = /cgroup/cpuset;
        cpu     = /cgroup/cpu;
        cpuacct = /cgroup/cpuacct;
        memory  = /cgroup/memory;
        devices = /cgroup/devices;
        freezer = /cgroup/freezer;
        net_cls = /cgroup/net_cls;
        blkio   = /cgroup/blkio;
}
{noformat}

> Document change to separate cgroup mounts
> -----------------------------------------
>
>                 Key: MESOS-926
>                 URL: https://issues.apache.org/jira/browse/MESOS-926
>             Project: Mesos
>          Issue Type: Documentation
>            Reporter: Ian Downes
>             Fix For: 0.17.0
>
>
> The containerizer refactor will use separate cgroup mounts. Documentation should be provided for users to migrate their hosts from single to separate cgroup mount hierarchies.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)