open-nomad/drivers/rawexec
Mahmood Ali a89da9982d
raw_exec: don't use cgroups when no_cgroup is set (#9328)
When raw_exec is configured with [`no_cgroups`](https://www.nomadproject.io/docs/drivers/raw_exec#no_cgroups), raw_exec shouldn't attempt to create a cgroup.

Prior to this change, we accidentally always required freezer cgroup to do stats PID tracking. We already have the proper fallback in place for metrics, so only need to ensure that we don't create a cgroup for the task.

Fixes https://github.com/hashicorp/nomad/issues/8565
2020-11-11 16:20:34 -05:00
..
driver.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04: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 cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
driver_unix_test.go raw_exec: don't use cgroups when no_cgroup is set (#9328) 2020-11-11 16:20:34 -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