v.24.11Improvement

Allow disabling memory buffer increase for filesystem cache

Allow to disable memory buffer increase for filesystem cache via setting filesystem_cache_prefer_bigger_buffer_size. #71640 (Kseniia Sumarokova).
Added a new setting filesystem_cache_prefer_bigger_buffer_size that allows users to disable the automatic increase of memory buffer size for the filesystem cache in ClickHouse.

Why it matters

This feature gives users control over the memory buffer sizing behavior for the filesystem cache, preventing automatic enlargement of buffer sizes. It is useful for optimizing memory usage and avoiding unexpected memory consumption growth in environments where buffer size increases are not desired.

How to use it

To use this feature, set the configuration option filesystem_cache_prefer_bigger_buffer_size to 0 (false) to disable automatic buffer size increase. This can be done in the server configuration file or via the SET query command.