conduktor.io ↗

socket.connection.setup.timeout.ms — Kafka Broker Configuration

The amount of time the client will wait for the socket connection to be established. If the connection is not built before the timeout elapses, clients will close the socket channel.

Description

The amount of time the client will wait for the socket connection to be established. If the connection is not built before the timeout elapses, clients will close the socket channel. This value is the initial backoff value and will increase exponentially for each consecutive connection failure, up to the socket.connection.setup.timeout.max.ms value.

Default Values by Kafka Version

Kafka VersionDefault Value
2.710000 (10 seconds)
2.810000 (10 seconds)
3.010000 (10 seconds)
3.110000 (10 seconds)
3.210000 (10 seconds)
3.310000 (10 seconds)
3.410000 (10 seconds)
3.510000 (10 seconds)
3.610000 (10 seconds)
3.710000 (10 seconds)
3.810000 (10 seconds)
3.910000 (10 seconds)
4.010000 (10 seconds)
4.110000 (10 seconds)
4.210000 (10 seconds)

Tuning Recommendation

ProfileRecommendedWhy
producer / latency3000Reducing the initial TCP connection setup timeout to 3s ensures the producer fails fast on unreachable brokers and triggers re-bootstrap sooner, avoiding 10s of blocked send() time on the first request to a cold or failed broker.

Related Configs

socket.connection.setup.timeout.max.ms · reconnect.backoff.ms

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.