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
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.9.0 | 30000 |
| Consumer | 0.10.0 | 30000 |
| Consumer | 0.10.1 | 10000 |
| Consumer | 0.10.2 | 10000 |
| Consumer | 0.11.0 | 10000 |
| Consumer | 1.0 | 10000 |
| Consumer | 1.1 | 10000 |
| Consumer | 2.0 | 10000 |
| Consumer | 2.1 | 10000 |
| Consumer | 2.2 | 10000 |
| Consumer | 2.3 | 10000 |
| Consumer | 2.4 | 10000 |
| Consumer | 2.5 | 10000 |
| Consumer | 2.6 | 10000 (10 seconds) |
| Consumer | 2.7 | 10000 (10 seconds) |
| Consumer | 2.8 | 10000 (10 seconds) |
| Consumer | 3.0 | 45000 (45 seconds) |
| Consumer | 3.1 | 45000 (45 seconds) |
| Consumer | 3.2 | 45000 (45 seconds) |
| Consumer | 3.3 | 45000 (45 seconds) |
| Consumer | 3.4 | 45000 (45 seconds) |
| Consumer | 3.5 | 45000 (45 seconds) |
| Consumer | 3.6 | 45000 (45 seconds) |
| Consumer | 3.7 | 45000 (45 seconds) |
| Consumer | 3.8 | 45000 (45 seconds) |
| Consumer | 3.9 | 45000 (45 seconds) |
| Consumer | 4.0 | 45000 (45 seconds) |
| Consumer | 4.1 | 45000 (45 seconds) |
| Consumer | 4.2 | 45000 (45 seconds) |
| Consumer | 4.3 | 45000 (45 seconds) |
| Consumer | 4.4 | 45000 (45 seconds) |
| Connect Worker | 0.9.0 | 30000 |
| Connect Worker | 0.10.0 | 30000 |
| Connect Worker | 0.10.1 | 10000 |
| Connect Worker | 0.10.2 | 10000 |
| Connect Worker | 0.11.0 | 10000 |
| Connect Worker | 1.0 | 10000 |
| Connect Worker | 1.1 | 10000 |
| Connect Worker | 2.0 | 10000 |
| Connect Worker | 2.1 | 10000 |
| Connect Worker | 2.2 | 10000 |
| Connect Worker | 2.3 | 10000 |
| Connect Worker | 2.4 | 10000 |
| Connect Worker | 2.5 | 10000 |
| Connect Worker | 2.6 | 10000 (10 seconds) |
| Connect Worker | 2.7 | 10000 (10 seconds) |
| Connect Worker | 2.8 | 10000 (10 seconds) |
| Connect Worker | 3.0 | 10000 (10 seconds) |
| Connect Worker | 3.1 | 10000 (10 seconds) |
| Connect Worker | 3.2 | 10000 (10 seconds) |
| Connect Worker | 3.3 | 10000 (10 seconds) |
| Connect Worker | 3.4 | 10000 (10 seconds) |
| Connect Worker | 3.5 | 10000 (10 seconds) |
| Connect Worker | 3.6 | 10000 (10 seconds) |
| Connect Worker | 3.7 | 10000 (10 seconds) |
| Connect Worker | 3.8 | 10000 (10 seconds) |
| Connect Worker | 3.9 | 10000 (10 seconds) |
| Connect Worker | 4.0 | 10000 (10 seconds) |
| Connect Worker | 4.1 | 10000 (10 seconds) |
| Connect Worker | 4.2 | 10000 (10 seconds) |
| Connect Worker | 4.3 | 10000 (10 seconds) |
| Connect Worker | 4.4 | 10000 (10 seconds) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | 45000 | With 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 / latency | 10000 | With 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 / durability | 45000 | With 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