heartbeat.interval.ms — Kafka Consumer Configuration
The expected time between heartbeats to the consumer coordinator when using Kafka's group management facilities. Heartbeats are used to ensure that the consumer's session stays active and to facilitate rebalancing when new consumers join or leave the group
Description
The expected time between heartbeats to the consumer coordinator when using Kafka's group management facilities. Heartbeats are used to ensure that the consumer's session stays active and to facilitate rebalancing when new consumers join or leave the group. This config is only supported if group.protocol is set to "classic". In that case, the value must be set lower than session.timeout.ms, but typically should be set no higher than 1/3 of that value. It can be adjusted even lower to control the expected time for normal rebalances.If group.protocol is set to "consumer", this config is not supported, as the heartbeat interval is controlled by the broker with group.consumer.heartbeat.interval.ms.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.9.0 | 3000 |
| Consumer | 0.10.0 | 3000 |
| Consumer | 0.10.1 | 3000 |
| Consumer | 0.10.2 | 3000 |
| Consumer | 0.11.0 | 3000 |
| Consumer | 1.0 | 3000 |
| Consumer | 1.1 | 3000 |
| Consumer | 2.0 | 3000 |
| Consumer | 2.1 | 3000 |
| Consumer | 2.2 | 3000 |
| Consumer | 2.3 | 3000 |
| Consumer | 2.4 | 3000 |
| Consumer | 2.5 | 3000 |
| Consumer | 2.6 | 3000 (3 seconds) |
| Consumer | 2.7 | 3000 (3 seconds) |
| Consumer | 2.8 | 3000 (3 seconds) |
| Consumer | 3.0 | 3000 (3 seconds) |
| Consumer | 3.1 | 3000 (3 seconds) |
| Consumer | 3.2 | 3000 (3 seconds) |
| Consumer | 3.3 | 3000 (3 seconds) |
| Consumer | 3.4 | 3000 (3 seconds) |
| Consumer | 3.5 | 3000 (3 seconds) |
| Consumer | 3.6 | 3000 (3 seconds) |
| Consumer | 3.7 | 3000 (3 seconds) |
| Consumer | 3.8 | 3000 (3 seconds) |
| Consumer | 3.9 | 3000 (3 seconds) |
| Consumer | 4.0 | 3000 (3 seconds) |
| Consumer | 4.1 | 3000 (3 seconds) |
| Consumer | 4.2 | 3000 (3 seconds) |
| Consumer | 4.3 | 3000 (3 seconds) |
| Consumer | 4.4 | 3000 (3 seconds) |
| Connect Worker | 0.9.0 | 3000 |
| Connect Worker | 0.10.0 | 3000 |
| Connect Worker | 0.10.1 | 3000 |
| Connect Worker | 0.10.2 | 3000 |
| Connect Worker | 0.11.0 | 3000 |
| Connect Worker | 1.0 | 3000 |
| Connect Worker | 1.1 | 3000 |
| Connect Worker | 2.0 | 3000 |
| Connect Worker | 2.1 | 3000 |
| Connect Worker | 2.2 | 3000 |
| Connect Worker | 2.3 | 3000 |
| Connect Worker | 2.4 | 3000 |
| Connect Worker | 2.5 | 3000 |
| Connect Worker | 2.6 | 3000 (3 seconds) |
| Connect Worker | 2.7 | 3000 (3 seconds) |
| Connect Worker | 2.8 | 3000 (3 seconds) |
| Connect Worker | 3.0 | 3000 (3 seconds) |
| Connect Worker | 3.1 | 3000 (3 seconds) |
| Connect Worker | 3.2 | 3000 (3 seconds) |
| Connect Worker | 3.3 | 3000 (3 seconds) |
| Connect Worker | 3.4 | 3000 (3 seconds) |
| Connect Worker | 3.5 | 3000 (3 seconds) |
| Connect Worker | 3.6 | 3000 (3 seconds) |
| Connect Worker | 3.7 | 3000 (3 seconds) |
| Connect Worker | 3.8 | 3000 (3 seconds) |
| Connect Worker | 3.9 | 3000 (3 seconds) |
| Connect Worker | 4.0 | 3000 (3 seconds) |
| Connect Worker | 4.1 | 3000 (3 seconds) |
| Connect Worker | 4.2 | 3000 (3 seconds) |
| Connect Worker | 4.3 | 3000 (3 seconds) |
| Connect Worker | 4.4 | 3000 (3 seconds) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | 3000 | With the classic protocol, schedules heartbeats and should be below session.timeout.ms; typically no more than one third of it. Tradeoff: More frequent heartbeats add traffic. With group.protocol=consumer, the broker controls heartbeat timing. Reference · 2026-10-27 |
| consumer / latency | 2000 | With the classic protocol, schedules heartbeats and should be below session.timeout.ms; typically no more than one third of it. Tradeoff: More frequent heartbeats add traffic. With group.protocol=consumer, the broker controls heartbeat timing. Reference · 2026-10-27 |
Related Configs
max.poll.interval.ms · session.timeout.ms · group.protocol