open-nomad/plugins/drivers
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
..
proto allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
testutils raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
utils gofmt all the files 2021-10-01 10:14:28 -04:00
client.go fix: update incorrect DriverNetworkManager interface implementation in plugins/drivers/client.go and drivers/mock/driver.go 2022-03-15 11:51:01 -07:00
cstructs.go drivers: re-export ResourceUsage structs 2019-01-08 09:11:47 -05:00
driver.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
errors.go Standardize driver health description messages for all drivers 2019-01-06 22:06:38 -06:00
execstreaming.go implemment streaming exec handling in driver grpc handlers 2019-05-09 16:49:08 -04:00
plugin.go drivers: pass logger through driver plugin client 2019-01-25 09:38:41 -05:00
server.go fix integer bounds checks (#11815) 2022-01-25 11:16:48 -05:00
task_handle.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
utils.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
utils_test.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
versions.go Add plugin API versioning to plugin loader and plugins 2018-12-18 16:48:00 -08:00