v.21.3Performance Improvement
Hedged Requests for Remote Queries to Reduce Tail Latencies
Hedged requests for remote queries. When settinguse_hedged_requestsenabled (off by default), allow to establish many connections with different replicas for query. New connection is enabled in case existent connection(s) with replica(s) were not established withinhedged_connection_timeoutor no data was received withinreceive_data_timeout. Query uses the first connection which send non empty progress packet (or data packet, ifallow_changing_replica_until_first_data_packet); other connections are cancelled. Queries withmax_parallel_replicas > 1are supported. #19291 (Kruglov Pavel). This allows to significantly reduce tail latencies on very large clusters.