Page MenuHomeVyOS Platform

Add config option for container cpu limit
Closed, ResolvedPublicFEATURE REQUEST

Description

It would be good to have the option to limit cpu besides memory so a wild running container cannot bog down the whole system:

set container name <name> cpus <cores>

to translate to podman argument --cpus <cores>.

For this to work the following kernel configs need to be enabled:

CONFIG_CGROUP_SCHED=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CPUSETS=y

Details

Version
-
Is it a breaking change?
Perfectly compatible

Event Timeline

Restricted Repository Identity mentioned this in rVYOSONEX8007b58f1e0e: T6406: add container cpu limit option.
Restricted Repository Identity mentioned this in rVYOSONEXd180595aff41: T6406: rename cpus to cpu.
Viacheslav claimed this task.
Viacheslav reassigned this task from Viacheslav to nvollmar.
Viacheslav moved this task from Open to Finished on the VyOS 1.5 Circinus board.
Viacheslav subscribed.