v.23.2Improvement

Keeper Enhancement: Preallocate Disk Space and Introduce max_log_file_size Setting

Keeper improvement: try preallocating space on the disk to avoid undefined out-of-space issues. Introduce setting max_log_file_size for the maximum size of Keeper's Raft log files. #44370 (Antonio Andelic).
Improves ClickHouse Keeper by preallocating disk space to prevent unexpected out-of-space errors and introduces the max_log_file_size setting to limit the size of Keeper's Raft log files.

Why it matters

This feature addresses reliability issues with Keeper by ensuring sufficient disk space is allocated ahead of time, avoiding undefined out-of-space errors that can interrupt operations. Additionally, it provides better control over storage usage by allowing users to set a maximum size for Raft log files.

How to use it

To use this feature, users can configure the max_log_file_size setting in the Keeper configuration to specify the upper limit for Raft log file sizes. Preallocation of disk space is handled automatically to improve stability.