v.25.8New Feature

Drop TCP connection after a configured number

Drop TCP connection after a configured number of queries or time threshold. This makes sense for a more uniform connection distribution between cluster nodes behind a load balancer. Resolves #68000. #81472 (Kenny Sun).
Adds the ability to drop TCP connections after a configured number of queries or a specified time threshold to improve load distribution across cluster nodes.

Why it matters

This feature addresses uneven connection distribution issues when ClickHouse nodes are behind a load balancer by closing TCP connections after they exceed query count or duration limits, promoting more uniform load balancing across the cluster.

How to use it

Configure the TCP connection dropping behavior by setting parameters that define the maximum number of queries or a time threshold after which the server will close the connection. These settings help manage and balance client connections effectively.