I am running Mesos 0.28.1 on Centos 7.1 using --isolation=cgroups and
noticed that mesos creates the cgroups:
/sys/fs/cgroup/{resource}/docker
/sys/fs/cgroup/{resource}/mesos
/sys/fs/cgroup/{resource}/mesos_executors.slice
Shouldn't these cgroups be in
/sys/fs/cgroup/{resource}/user.slice/{docker,mesos,mesos_executors.slice}
to ensure a more fair allocation of the cgroup resources possible? Or is
there a way to configure that to happen?
The v2-cgroup hierarchy is such that:
1) /sys/fs/cgroup, is for kernel processes
2) /sys/fs/cgroup/system.slice is for systemd processes, which contains
docker.service and mesos-slave.service, and
3) /sys/fs/cgroup/user.slice is for all other processes.
Having {docker,mesos,mesos_executors.slice} in user.slice would enable
finer grain control of the resources across the mesos and user processes.