v.24.3Improvement

Update Memory Limit in Runtime for Changed Linux CGroups Value

Update memory limit in runtime when Linux's CGroups value changed. #61049 (Han Fei).
ClickHouse now updates the memory limit dynamically at runtime whenever Linux's CGroups memory limit value changes.

Why it matters

This feature addresses the issue where ClickHouse would not adapt to changes in memory constraints imposed by Linux CGroups after startup, ensuring that memory usage limits are respected dynamically without needing to restart the server.

How to use it

This feature is enabled automatically; ClickHouse monitors Linux CGroups for memory limit changes and updates its internal memory limits in real-time without requiring any manual configuration.