open-nomad/client/lib
Seth Hoenig cade04d3f6 client: change test to not poke cgroupv2 edge case
This PR tweaks the TestCpusetManager_AddAlloc unit test to not break
when being run on a machine using cgroupsv2. The behavior of writing
an empty cpuset.cpu changes in cgroupv2, where such a group now inherits
the value of its parent group, rather than remaining empty.

The test in question was written such that a task would consume all available
cores shared on an alloc, causing the empty set to be written to the shared
group, which works fine on cgroupsv1 but breaks on cgroupsv2. By adjusting
the test to consume only 1 core instead of all cores, it no longer triggers
that edge case.

The actual fix for the new cgroupsv2 behavior will be in #11933
2022-01-27 08:27:40 -06:00
..
cgutil client: change test to not poke cgroupv2 edge case 2022-01-27 08:27:40 -06:00
fifo gofmt all the files 2021-10-01 10:14:28 -04:00
nsutil ar: plumb client config for networking into the network hook 2019-07-31 01:04:06 -04:00
streamframer