Settings | ClickHouse Documentation
clickhouse.com › docs › enconnect_timeout_with_failover_ms The timeout in milliseconds for connecting to a remote server for a Distributed table engine, if the ‘shard’ and ‘replica’ sections are used in the cluster definition. If unsuccessful, several attempts are made to connect to various replicas. Default value: 50. connection_pool_max_wait_ms