open-nomad/client/lib
Seth Hoenig 51384dd63f client: refactor cpuset manager initialization
This PR refactors the code path in Client startup for setting up the cpuset
cgroup manager (non-linux systems not affected).

Before, there was a logic bug where we would try to read the cpuset.cpus.effective
cgroup interface file before ensuring nomad's parent cgroup existed. Therefor that
file would not exist, and the list of useable cpus would be empty. Tasks started
thereafter would not have a value set for their cpuset.cpus.

The refactoring fixes some less than ideal coding style. Instead we now bootstrap
each cpuset manager type (v1/v2) within its own constructor. If something goes
awry during bootstrap (e.g. cgroups not enabled), the constructor returns the
noop implementation and logs a warning.

Fixes #14229
2022-08-25 11:18:43 -05:00
..
cgutil client: refactor cpuset manager initialization 2022-08-25 11:18:43 -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