open-nomad/client/lib/cgutil
Seth Hoenig 52aaf86f52 raw_exec: make raw exec driver work with cgroups v2
This PR adds support for the raw_exec driver on systems with only cgroups v2.

The raw exec driver is able to use cgroups to manage processes. This happens
only on Linux, when exec_driver is enabled, and the no_cgroups option is not
set. The driver uses the freezer controller to freeze processes of a task,
issue a sigkill, then unfreeze. Previously the implementation assumed cgroups
v1, and now it also supports cgroups v2.

There is a bit of refactoring in this PR, but the fundamental design remains
the same.

Closes #12351 #12348
2022-04-04 16:11:38 -05:00
..
cgutil_linux.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
cgutil_linux_test.go client: cgroups v2 code review followup 2022-03-24 13:40:42 -05:00
cgutil_noop.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
cpuset_manager.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
cpuset_manager_test.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
cpuset_manager_v1.go client: cgroups v2 code review followup 2022-03-24 13:40:42 -05:00
cpuset_manager_v1_test.go client: cgroups v2 code review followup 2022-03-24 13:40:42 -05:00
cpuset_manager_v2.go client: cgroups v2 code review followup 2022-03-24 13:40:42 -05:00
cpuset_manager_v2_test.go client: cgroups v2 code review followup 2022-03-24 13:40:42 -05:00
group_killer.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00