open-nomad/drivers/rawexec
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
..
driver.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
driver_pre09.go client: fix bug during 0.8 state up grade that causes external drivers to fail 2019-01-30 14:22:29 -05:00
driver_test.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
driver_unix_test.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
handle.go raw_exec: ensure executor is killed after task is stopped 2019-01-25 23:06:31 -05:00
state.go rawexec: standardize names/code 2018-11-01 15:53:07 -07:00