v.25.5Improvement

Add filesystem cache

Add filesystem cache setting max_size_ratio_to_total_space. #79460 (Kseniia Sumarokova).
Add a new filesystem cache configuration setting max_size_ratio_to_total_space to limit cache size relative to total disk space.

Why it matters

This feature introduces a parameter to control the maximum size of the filesystem cache as a ratio of the total available disk space. It helps prevent the cache from growing too large and consuming excessive disk resources, ensuring more predictable storage management and avoiding potential disk saturation.

How to use it

Users can enable this feature by setting the max_size_ratio_to_total_space parameter in the filesystem cache configuration. This sets a limit on the cache size as a fraction of the total disk space, for example:

filesystem_cache:
max_size_ratio_to_total_space: 0.5


This example limits the cache size to 50% of the total disk space.