containers / nri-plugins

A collection of community maintained NRI plugins
https://containers.github.io/nri-plugins/
Apache License 2.0
67 stars 24 forks source link

The default balloons configuration should run bestefforts on idle CPUs #385

Open askervin opened 1 month ago

askervin commented 1 month ago

Description

Improve the default balloons configuration so that it will have its own balloon type for besteffort containers, and that balloons of this type will be able to use idle CPUs in a convenient zone level.

TBD: should we allow creating multiple balloons from this type? Like one per CPU socket?

Note that in case of multiple besteffort balloon instances, the policy needs to be able to spread besteffort containers to these instances. At minimum by striping, or perhaps based on headroom on allowed (= allocated + borrowed) CPUs.

Rationale

Currently besteffort containers do not get properly spread to balloon instances (due to their zero CPU consumption), and they can therefore interfere with running containers in the same balloons.