v.24.7Improvement
clickhouse-local now respects memory usage settings from configuration file
clickhouse-localwill respect themax_server_memory_usageandmax_server_memory_usage_to_ram_ratiofrom the configuration file. It will also set the max memory usage to 90% of the system memory by default, likeclickhouse-serverdoes. #65697 (Alexey Milovidov).
Why it matters
This feature ensures thatclickhouse-local has consistent memory usage controls as clickhouse-server, preventing excessive memory consumption and improving stability by adhering to configured memory limits or a sensible default based on system RAM.How to use it
Configuremax_server_memory_usage and/or max_server_memory_usage_to_ram_ratio in the clickhouse-local configuration file. If unset, clickhouse-local will automatically limit its max memory usage to 90% of system RAM by default.