open-nomad/client/taskenv
Seth Hoenig 0870aa31dc client: set environment variable indicating set of reserved cpu cores
This PR injects the 'NOMAD_CPU_CORES' environment variable into
tasks that have been allocated reserved cpu cores. The value uses
normal cpuset notation, as found in cpuset.cpu cgroup interface files.

Note this value is not necessiarly the same as the content of the actual
cpuset.cpus interface file, which will also include shared cpu cores when
using cgroups v2. This variable is a workaround for users who used to be
able to read the reserved cgroup cpuset file, but lose the information
about distinct reserved cores when using cgroups v2.

Side discussion in: https://github.com/hashicorp/nomad/issues/12374
2022-04-07 09:09:35 -05:00
..
env.go client: set environment variable indicating set of reserved cpu cores 2022-04-07 09:09:35 -05:00
env_test.go client: set environment variable indicating set of reserved cpu cores 2022-04-07 09:09:35 -05:00
network.go interpolate network.dns block on client (#12021) 2022-02-16 08:39:44 -05:00
network_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
services.go consul/connect: enable setting local_bind_address in upstream 2021-02-26 11:47:00 +00:00
services_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
util.go taskenv: have maps take precedence over primitives 2018-12-20 11:37:46 -08:00
util_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00