max.poll.interval.ms — Kafka Consumer Configuration
The maximum delay between invocations of poll() when using consumer group management. This places an upper bound on the amount of time that the consumer can be idle before fetching more records
Description
The maximum delay between invocations of poll() when using consumer group management. This places an upper bound on the amount of time that the consumer can be idle before fetching more records. If poll() is not called before expiration of this timeout, then the consumer is considered failed and the group will rebalance in order to reassign the partitions to another member. For consumers using a non-null group.instance.id which reach this timeout, partitions will not be immediately reassigned. Instead, the consumer will stop sending heartbeats and partitions will be reassigned after expiration of the session timeout (defined by the client config session.timeout.ms if using the Classic rebalance protocol, or by the broker config group.consumer.session.timeout.ms if using the Consumer protocol). This mirrors the behavior of a static consumer which has shutdown. In the Classic consumer, connections.max.idle.ms should be set to a value greater than or equal to this timeout to avoid closing the connection to the group coordinator during an ongoing rebalance. This is particularly important in large groups, where a rebalance may take longer to complete while the coordinator waits for all members to rejoin.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.10.1 | 300000 |
| Consumer | 0.10.2 | 300000 |
| Consumer | 0.11.0 | 300000 |
| Consumer | 1.0 | 300000 |
| Consumer | 1.1 | 300000 |
| Consumer | 2.0 | 300000 |
| Consumer | 2.1 | 300000 |
| Consumer | 2.2 | 300000 |
| Consumer | 2.3 | 300000 |
| Consumer | 2.4 | 300000 |
| Consumer | 2.5 | 300000 |
| Consumer | 2.6 | 300000 (5 minutes) |
| Consumer | 2.7 | 300000 (5 minutes) |
| Consumer | 2.8 | 300000 (5 minutes) |
| Consumer | 3.0 | 300000 (5 minutes) |
| Consumer | 3.1 | 300000 (5 minutes) |
| Consumer | 3.2 | 300000 (5 minutes) |
| Consumer | 3.3 | 300000 (5 minutes) |
| Consumer | 3.4 | 300000 (5 minutes) |
| Consumer | 3.5 | 300000 (5 minutes) |
| Consumer | 3.6 | 300000 (5 minutes) |
| Consumer | 3.7 | 300000 (5 minutes) |
| Consumer | 3.8 | 300000 (5 minutes) |
| Consumer | 3.9 | 300000 (5 minutes) |
| Consumer | 4.0 | 300000 (5 minutes) |
| Consumer | 4.1 | 300000 (5 minutes) |
| Consumer | 4.2 | 300000 (5 minutes) |
| Consumer | 4.3 | 300000 (5 minutes) |
| Consumer | 4.4 | 300000 (5 minutes) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | 600000 | Bounds the interval between consumer poll calls for group liveness. Size it for processing and downstream tail latency. Tradeoff: A longer interval delays detecting a stuck application. Static membership changes when partitions are reassigned after a poll timeout. Reference · 2026-10-27 |
| consumer / latency | 30000 | Bounds the interval between consumer poll calls for group liveness. Size it for processing and downstream tail latency. Tradeoff: A longer interval delays detecting a stuck application. Static membership changes when partitions are reassigned after a poll timeout. Reference · 2026-10-27 |
| consumer / durability | 300000 | Bounds the interval between consumer poll calls for group liveness. Size it for processing and downstream tail latency. Tradeoff: A longer interval delays detecting a stuck application. Static membership changes when partitions are reassigned after a poll timeout. Reference · 2026-10-27 |
Related Configs
max.poll.records · session.timeout.ms · heartbeat.interval.ms · partition.assignment.strategy · group.instance.id