v.25.5Improvement

For clickhouse-benchmark reconfigure reconnect option

For clickhouse-benchmark reconfigure reconnect option to take 0, 1 or N as values for reconnecting accordingly. #79465 (Sachin Kumar Singh).
Improved the clickhouse-benchmark tool by enhancing the reconnect option to accept values 0, 1, or N, allowing users to control the number of reconnection attempts during benchmarking.

Why it matters

This feature addresses the need for more flexible and precise control over connection retries while running benchmarks. By enabling the reconnect option to accept different values, users can specify whether to disable reconnects (0), enable a single reconnect (1), or allow multiple reconnects (N), improving stability and reliability in benchmark testing scenarios.

How to use it

When running clickhouse-benchmark, set the --reconnect option with a value of 0, 1, or any positive integer N. For example:

clickhouse-benchmark --reconnect 3


This configures the benchmark to attempt up to 3 reconnections if the connection drops.