v.18.12Improvement

Added Randomization to Cleanup Thread for ReplicatedMergeTree Tables

Added randomization when running the cleanup thread periodically for ReplicatedMergeTree tables in order to avoid periodic load spikes when there are a very large number of ReplicatedMergeTree tables.
Added randomization to the periodic cleanup thread execution for ReplicatedMergeTree tables.

Why it matters

This feature addresses the issue of periodic load spikes caused by simultaneous cleanup operations on a very large number of ReplicatedMergeTree tables, improving overall cluster stability and performance.

How to use it

The randomization is applied automatically to the cleanup thread for ReplicatedMergeTree tables and does not require any user configuration or action.