nokia/CPU-Pooler

Automatically adjust the cpuset of the pause container to the default pool

Levovar opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
The pause containers do not show up in the Pod API, therefore CPUSetter is not notified when they change state.
The infra containers usually do not contain any running threads, but it just in case it would be nice to confine these containers too to a preset cpuset.
This would also show a uniform picture whenever someone inspects the cpusets of Pooler controlled Pods.

Describe the solution you'd like
It would make sense to automatically confine infra containers to the default pool. Whenever a container is being adjusted, Pooler could match the "directories" inside the Pod's cgroup hierarchy with the container statuses stored inside the Pod.
The "directory" not having a matching entry is the pause container's. then its cpuset could be automatically adjusted to the default pool.

solved by #26