conduktor.io ↗

session.timeout.ms — Kafka Consumer Configuration

The timeout used to detect client failures when using Kafka's group management facility. The client sends periodic heartbeats to indicate its liveness to the broker

Description

The timeout used to detect client failures when using Kafka's group management facility. The client sends periodic heartbeats to indicate its liveness to the broker. If no heartbeats are received by the broker before the expiration of this session timeout, then the broker will remove this client from the group and initiate a rebalance. Note that the value must be in the allowable range as configured in the broker configuration by group.min.session.timeout.ms and group.max.session.timeout.ms. Note that this client configuration is not supported when group.protocol is set to "consumer". In that case, session timeout is controlled by the broker config group.consumer.session.timeout.ms.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Consumer0.9.030000
Consumer0.10.030000
Consumer0.10.110000
Consumer0.10.210000
Consumer0.11.010000
Consumer1.010000
Consumer1.110000
Consumer2.010000
Consumer2.110000
Consumer2.210000
Consumer2.310000
Consumer2.410000
Consumer2.510000
Consumer2.610000 (10 seconds)
Consumer2.710000 (10 seconds)
Consumer2.810000 (10 seconds)
Consumer3.045000 (45 seconds)
Consumer3.145000 (45 seconds)
Consumer3.245000 (45 seconds)
Consumer3.345000 (45 seconds)
Consumer3.445000 (45 seconds)
Consumer3.545000 (45 seconds)
Consumer3.645000 (45 seconds)
Consumer3.745000 (45 seconds)
Consumer3.845000 (45 seconds)
Consumer3.945000 (45 seconds)
Consumer4.045000 (45 seconds)
Consumer4.145000 (45 seconds)
Consumer4.245000 (45 seconds)
Consumer4.345000 (45 seconds)
Consumer4.445000 (45 seconds)
Connect Worker0.9.030000
Connect Worker0.10.030000
Connect Worker0.10.110000
Connect Worker0.10.210000
Connect Worker0.11.010000
Connect Worker1.010000
Connect Worker1.110000
Connect Worker2.010000
Connect Worker2.110000
Connect Worker2.210000
Connect Worker2.310000
Connect Worker2.410000
Connect Worker2.510000
Connect Worker2.610000 (10 seconds)
Connect Worker2.710000 (10 seconds)
Connect Worker2.810000 (10 seconds)
Connect Worker3.010000 (10 seconds)
Connect Worker3.110000 (10 seconds)
Connect Worker3.210000 (10 seconds)
Connect Worker3.310000 (10 seconds)
Connect Worker3.410000 (10 seconds)
Connect Worker3.510000 (10 seconds)
Connect Worker3.610000 (10 seconds)
Connect Worker3.710000 (10 seconds)
Connect Worker3.810000 (10 seconds)
Connect Worker3.910000 (10 seconds)
Connect Worker4.010000 (10 seconds)
Connect Worker4.110000 (10 seconds)
Connect Worker4.210000 (10 seconds)
Connect Worker4.310000 (10 seconds)
Connect Worker4.410000 (10 seconds)

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
consumer / throughput45000With the classic group protocol, controls failure detection when heartbeats stop; broker min/max bounds apply.

Tradeoff: Shorter sessions can evict healthy members during pauses. With group.protocol=consumer, the broker controls the session timeout instead.

Reference · 2026-10-27
consumer / latency10000With the classic group protocol, controls failure detection when heartbeats stop; broker min/max bounds apply.

Tradeoff: Shorter sessions can evict healthy members during pauses. With group.protocol=consumer, the broker controls the session timeout instead.

Reference · 2026-10-27
consumer / durability45000With the classic group protocol, controls failure detection when heartbeats stop; broker min/max bounds apply.

Tradeoff: Shorter sessions can evict healthy members during pauses. With group.protocol=consumer, the broker controls the session timeout instead.

Reference · 2026-10-27

Related Configs

max.poll.interval.ms · heartbeat.interval.ms · partition.assignment.strategy · group.instance.id · request.timeout.ms · group.protocol

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