v.25.7Improvement

Tune TCP servers queue

Tune TCP servers queue (64 by default) based on listen_backlog (4096 by default). #82045 (Azat Khuzhin).
Tune TCP servers queue size based on the listen_backlog setting, increasing it from the default 64 to 4096.

Why it matters

This feature adjusts the TCP server's queue size to match the listen_backlog value, improving the handling of incoming connection requests under high load and reducing connection drops or refusals.

How to use it

Set the listen_backlog parameter to the desired queue size, for example:

SET listen_backlog = 4096


The TCP server will then tune its queue size to this value automatically.