according to the documentation you can use a combination of
lxc config set $container limits.cpu $number
lxc config set $container limits.cpu.allowance 10ms/100ms
I would expect this combination to limit the amount of cores $container can use and to allow every core in this container to peak to 10% of the core’s power.
But using limits.cpu.allowance limits the $container always to 1 core. No matter if you use it in combination with limits.cpu or not. And no matter if the server has more cores available.
As soon as i unset limits.cpu.allowance eighter all cpu cores of the server are accessible or, if i used limits.cpu the defined amount of cpu cores.
Is this behaviour correct ? If so, how to limit the $container to X cores and at the same time assigning a specific maximum cpu time to it ?
Tested on Kernel 5.0.9 and lxc version 3.16
Thank you !