> On Янв. 13, 2020, 3:21 д.п., Qian Zhang wrote: > > src/slave/containerizer/mesos/isolators/cgroups/cgroups.cpp > > Lines 435 (patched) > > <https://reviews.apache.org/r/71965/diff/1/?file=2199231#file2199231line435> > > > > Here I think we need a special handling for 2nd level nested > > containers, i.e., for such containers the `share_cgroups` field will be > > ignored and they should always share cgroups from its parent container, see > > https://github.com/apache/mesos/blob/master/include/mesos/v1/mesos.proto#L3340:L3343 > > . > > Andrei Budnik wrote: > Is this still actual after our discussion? > > Qian Zhang wrote: > Instead of ignoring debug containers, I think here we should add a > validation to ensure that debug containers do not set share_cgroups=false, > and ignore debug containers when we do the validation that the value of > share_cgroups for all the nested containers under a root container must be > same.
Added a check for `DEBUG` containers in `CgroupsIsolatorProcess::prepare`. - Andrei ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/71965/#review219227 ----------------------------------------------------------- On Фев. 13, 2020, 5:19 п.п., Andrei Budnik wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/71965/ > ----------------------------------------------------------- > > (Updated Фев. 13, 2020, 5:19 п.п.) > > > Review request for mesos, Greg Mann and Qian Zhang. > > > Bugs: MESOS-10076 > https://issues.apache.org/jira/browse/MESOS-10076 > > > Repository: mesos > > > Description > ------- > > This patch adds support for nested cgroups for nested containers. > Nested cgroups are created only for a nested container with explicitly > enabled `share_cgroups` flag. The cgroups isolator stores info about > nested cgroups in the `infos` class variable, which is used to > determine whether a nested container has its nested cgroup. > > > Diffs > ----- > > src/slave/containerizer/mesos/isolators/cgroups/cgroups.hpp > 4bd3d6dad37dee031660c15e957cc36f63e21fcb > src/slave/containerizer/mesos/isolators/cgroups/cgroups.cpp > b12b73d8e0161d448075378765e77867521de04e > > > Diff: https://reviews.apache.org/r/71965/diff/4/ > > > Testing > ------- > > > Thanks, > > Andrei Budnik > >
