Open yylt opened 3 months ago
pid is here https://github.com/containerd/nri/blob/53d3371559b3aedf4f491c33dc638fe535cc37ea/pkg/api/api.proto#L248
But it says "for NRI v1 emulation". I don't know if it is actually provided.
pid is here
But it says "for NRI v1 emulation". I don't know if it is actually provided.
If I'm not mistaken, this seems to be metadata for a sandbox or container, it cannot be used for ContainerAdjustment
.
This value, if provided, should be read only. I don't think there is a way to control which pid to assign to a process.
Yes, so what I mean is to add pids
in the LinuxResources
for controlling the pids cgroup
.
Additionally, the pids cgroup
is to control the number of PIDs inside the container, which is a good restriction limit for the issue of unhandled process exit signals or starting too many processes .
In the current implementation, it is not possible to control
pid cgroup
in nri plugin. Couldpid
be included?
I think for the cgroup v2 version of the controller we already support setting the max allowed pids using LinuxResources.Unified["pids.max"]
. Do you have a use case for this cgroup v1-specific addition ?
In the current implementation, it is not possible to control
pid cgroup
in nri plugin. Couldpid
be included?Reference: https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md#pids