Migrating from cgroup v1 to cgroup v2
Learn how to migrate from cgroup v1 to cgroup v2. You must migrate from cgroup v1 to cgroup v2 for managing the cluster resources using cgroup v2 resource allocation configuration parameters.
-
Upgrade Cloudera Manager to Cloudera Manager 7.13.1 (minimum Cloudera Manager version
which supports cgroup v2). For upgrading Cloudera Manager, see Upgrading Cloudera Manager 7.
- Optional:
If you want to provide a custom path in the config.ini file for
cgroup V2, ensure you add the following parameter to the config.ini
file under the
[Cgroup_Paths]
section after performing a CM upgrade:controllers_cgroup_path=/
In case of fresh installation, by default, this custom path is available in the config.ini file under the
[Cgroup_Paths]
section and hence there is no need to add a custom path in the config.ini file for cgroup V2. - Upgrade CDP Runtime to CDP 7.3.1 (minimum CDP Runtime version). For upgrading CDP Runtime, see Upgrading a Cloudera Runtime Cluster.
-
Disable the Enable Cgroup-based Resource Management property for
cgroup v1 by performing the following steps:
- On the Cloudera Manager UI, navigate to Hosts > Hosts Configuration.
- Select Category > Resource Management.
- Clear the Enable Cgroup-based Resource Management checkbox.
- Click Save Changes.
-
Upgrade OS to RHEL 9.
-
Enable the Enable Cgroup-based Resource Management property for
cgroup v2 by performing the following steps:
- On the Cloudera Manager UI, navigate to Hosts > Hosts Configuration.
- Select Category > Resource Management.
- Select the Enable Cgroup-based Resource Management checkbox.
- Click Save Changes.
- Restart the services that are using cgroups.