v.25.10Improvement

Support --connection

Support --connection in clickhouse-benchmarks. It is the same as supported by clickhouse-client, you can specify predefined connections in client config.xml/config.yaml under connections_credentials path, to avoid explicitly specifying user/password via command line arguments. Add support for --accept-invalid-certificate into clickhouse-benchmark. #87370 (Azat Khuzhin).
Added support for the --connection option in clickhouse-benchmark, enabling usage of predefined connections from client configuration files, along with support for --accept-invalid-certificate to allow benchmarking with invalid TLS certificates.

Why it matters

This feature allows users to avoid specifying user credentials explicitly on the command line by utilizing predefined connection profiles from config.xml or config.yaml under the connections_credentials path. Additionally, it provides the option to bypass TLS certificate validation in benchmarks, facilitating testing in environments with self-signed or invalid certificates.

How to use it

Use the --connection flag with clickhouse-benchmark to specify a predefined connection name as configured in your client config.xml or config.yaml under connections_credentials. To accept invalid TLS certificates during benchmarking, use the --accept-invalid-certificate flag. For example:

clickhouse-benchmark --connection my_connection --accept-invalid-certificate