Open ani-sinha opened 3 months ago
Thanks for raising this @ani-sinha. Development is currently in progress to support v2
@maddieford Thanks --- do you have any idea when this might be released?
The target is to include the initial changes in the next +1 release, but there is no date decided for that release yet. I can post an update here when that release starts.
Please note that the initial changes only add v2 support for the log collector process (this will be opt-in by a flag in waagent.conf). Resource monitoring and enforcement using v2 for the agent and extension processes will come in later releases after the log collector scenario is validated.
Looking at the code in
CGroupConfigurator._Impl.initialize()
, it seems WALinuxAgent does not quite support CGroups v2. In__get_cgroup_controllers()
we have :Then it does not do anything with
cgroup2_mount_point
etc.__get_cgroup_controllers()
returns(None, None)
so the following codecpu_controller_root, memory_controller_root = self.__get_cgroup_controllers()
makescpu_controller_root
andmemory_controller_root
bothNone
. This when passed to__get_agent_cgroups()
makes the later in turn return(None, None)
. Thereforeself._agent_cpu_cgroup_path
andself._agent_memory_cgroup_path
are bothNone
which disabled CGroups support.This ticket is raised to request support for it. CGroups v2 is default in Centos 9 and above.