conduktor.io ↗

connections.max.idle.ms — Kafka Broker Configuration

Close idle connections after the number of milliseconds specified by this config..

Description

Close idle connections after the number of milliseconds specified by this config.

Default Values by Kafka Version

Kafka VersionDefault Value
0.8.2600000
0.9.0600000
0.10.0600000
0.10.1600000
0.10.2600000
0.11.0600000
1.0600000
1.1600000
2.0600000
2.1600000
2.2600000
2.3600000
2.4600000
2.5600000
2.6600000 (10 minutes)
2.7600000 (10 minutes)
2.8600000 (10 minutes)
3.0600000 (10 minutes)
3.1600000 (10 minutes)
3.2600000 (10 minutes)
3.3600000 (10 minutes)
3.4600000 (10 minutes)
3.5600000 (10 minutes)
3.6600000 (10 minutes)
3.7600000 (10 minutes)
3.8600000 (10 minutes)
3.9600000 (10 minutes)
4.0600000 (10 minutes)
4.1600000 (10 minutes)
4.2600000 (10 minutes)

Tuning Recommendation

ProfileRecommendedWhy
producer / throughput540000Keeping connections alive for 9 minutes avoids the TCP handshake and TLS setup cost (10-50ms) of re-establishing connections on every burst, which dominates throughput cost at high partition counts.
consumer / throughput540000Keeping connections alive for 9 minutes avoids repeated TCP + TLS handshake overhead (10-50ms each) when reconnecting to brokers. For high-throughput consumers that poll continuously, connections are always active and this setting rarely triggers — but it prevents teardown during brief fetch lulls.

Related Configs

send.buffer.bytes · receive.buffer.bytes · request.timeout.ms

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