open-nomad/nomad/structs
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
..
config ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
alloc.go client: hookup service wrapper for use within client hooks. 2022-03-21 10:29:57 +01:00
alloc_test.go client: hookup service wrapper for use within client hooks. 2022-03-21 10:29:57 +01:00
batch_future.go
batch_future_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
bitmap.go
bitmap_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
connect.go
connect_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
consul.go jobspec: add service block provider parameter and validation. 2022-03-14 09:21:20 +01:00
consul_oss.go
consul_oss_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
consul_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
csi.go Add pagination, filtering and sort to more API endpoints (#12186) 2022-03-08 20:54:17 -05:00
csi_test.go CSI: enforce single access mode at validation time (#12337) 2022-03-23 09:21:26 -04:00
devices.go
devices_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
diff.go Expose Consul template configuration parameters (#11606) 2022-01-10 10:19:07 -05:00
diff_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
encoding.go
errors.go CSI: minor refactoring (#12105) 2022-02-23 11:13:51 -05:00
errors_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
event.go events: add state objects and logic for service registrations. 2022-02-28 10:44:58 +01:00
extensions.go
funcs.go scheduler: detect and log unexpected scheduling collisions (#11793) 2022-01-14 20:09:14 -05:00
funcs_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
generate.sh
handlers.go
job.go job: add native service discovery job constraint mutator. 2022-03-14 12:42:12 +01:00
job_test.go job: add native service discovery job constraint mutator. 2022-03-14 12:42:12 +01:00
network.go scheduler: detect and log unexpected scheduling collisions (#11793) 2022-01-14 20:09:14 -05:00
network_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
node.go CSI: allow updates to volumes on re-registration (#12167) 2022-03-07 11:06:59 -05:00
node_class.go
node_class_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
node_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator.go scheduler: config option to reject job registration (#11610) 2021-12-06 15:20:34 -05:00
search.go
service_identities.go
service_registration.go rpc: add service registration RPC endpoints. 2022-03-03 11:25:29 +01:00
service_registration_test.go rpc: add service registration RPC endpoints. 2022-03-03 11:25:29 +01:00
services.go jobspec: add service block provider parameter and validation. 2022-03-14 09:21:20 +01:00
services_test.go test: move remaining tests to use ci.Parallel. 2022-03-24 08:45:13 +01:00
streaming_rpc.go
structs.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
structs_codegen.go
structs_oss.go
structs_periodic_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
structs_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
testing.go
volume_test.go CSI: enforce single access mode at validation time (#12337) 2022-03-23 09:21:26 -04:00
volumes.go CSI: enforce single access mode at validation time (#12337) 2022-03-23 09:21:26 -04:00