Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9305

Create cgoup recursively to workaround systemd deleting cgroups_root.

    XMLWordPrintableJSON

Details

    Description

      This is my case:

      My cgroups_root of mesos-slave is some_user/mesos under /sys/fs/cgroup。

      It happens that this some_user dir may be gone for some unknown reason, in which case I can no longer create any cgroup and any task will fail.

      So I would like to change 

       

      Try<Nothing> create = cgroups::create(
      hierarchy,
      infos[containerId]->cgroup);
      

      to

      Try<Nothing> create = cgroups::create(
      hierarchy,
      infos[containerId]->cgroup,
      true);
      

      in CgroupsIsolatorProcess::prepare in src/slave/containerizer/mesos/isolators/cgroups/cgroups.cpp.

      However, I'm not sure if there's any potential problem doing so. Any advice?

       

      Attachments

        1. image-2018-10-11-10-40-11-326.png
          147 kB
          longfei
        2. image-2018-10-11-10-45-35-369.png
          34 kB
          longfei
        3. image-2018-10-11-10-45-48-170.png
          42 kB
          longfei

        Issue Links

          Activity

            People

              carlone longfei
              carlone longfei
              Jie Yu Jie Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: