v.22.4Improvement

Respect cgroups quota and period, ignore shares

Respect only quota & period from cgroups, ignore shares (which are not really limit the number of the cores which can be used). #35815 (filimonov).
ClickHouse now respects only the CPU quota and period settings from cgroups and ignores the CPU shares parameter when limiting core usage.

Why it matters

Previously, CPU shares from cgroups were considered for limiting core usage, but they do not actually restrict the number of cores available. This change improves accuracy in resource management by enforcing only the true CPU usage limits defined by quota and period, preventing misinterpretation of resource limits.

How to use it

No additional user action is required. ClickHouse automatically respects CPU quota and period values from cgroups when managing CPU resources and ignores CPU shares.