DevinLeamy opened a new pull request, #555:
URL: https://github.com/apache/mesos/pull/555
Updates the cgroups v2 isolator to include initialization, cleanup, update,
and recovery logic.
Unlike cgroups v1 we:
- Create a new cgroup namespace during isolation, by introducing a new clone
namespace flag. This implies that the contained process will only have access
to cgroups in its cgroup subtree
- We only need to recover two cgroups (the domain and leaf cgroups [1]) for
each container, rather than having to recover one cgroup for each controller
the container used.
- We do not (yet) support nested containers.
Using the cgroups v2 isolator requires Mesos to be compiled with
`--enable-cgroups-v2` and to have the cgroup2 filesystem mounted at
/sys/fs/cgroup. Selecting the correct isolator version (v1 or v2) is done
automatically. V2 is used if the host supports cgroups v2 and is correctly
configured.
[1] The "domain" cgroup is the cgroup for a container where resource
constraints are imposed. The "leaf" cgroup, which has the path
<domain cgroup>/leaf, is where the container PID is put.
Container PIDs are only put in leaf cgroups.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]