open-nomad/client/lib
Seth Hoenig d69556fb35
client: ensure minimal cgroup controllers enabled (#15027)
* client: ensure minimal cgroup controllers enabled

This PR fixes a bug where Nomad could not operate properly on operating
systems that set the root cgroup.subtree_control to a set of controllers that
do not include the minimal set of controllers needed by Nomad.

Nomad needs these controllers enabled to operate:
- cpuset
- cpu
- io
- memory
- pids

Now, Nomad will ensure these controllers are enabled during Client initialization,
adding them to cgroup.subtree_control as necessary. This should be particularly
helpful on the RHEL/CentOS/Fedora family of system. Ubuntu systems should be
unaffected as they enable all controllers by default.

Fixes: https://github.com/hashicorp/nomad/issues/14494

* docs: cleanup doc string

* client: cleanup controller writes, enhance log messages
2022-10-24 16:08:54 -05:00
..
cgutil client: ensure minimal cgroup controllers enabled (#15027) 2022-10-24 16:08:54 -05:00
fifo test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
nsutil ar: plumb client config for networking into the network hook 2019-07-31 01:04:06 -04:00
resources deps: update opencontainers/runc to v1.1.3 2022-08-04 12:56:49 -05:00
streamframer framer: fix early exit/truncation in framer 2018-05-02 10:46:16 -07:00