auto.commit.interval.ms — Kafka Consumer Configuration
The frequency in milliseconds that the consumer offsets are auto-committed to Kafka if enable.auto.
Description
The frequency in milliseconds that the consumer offsets are auto-committed to Kafka if enable.auto.commit is set to true.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.0 | 60 * 1000 |
| 0.8.1 | 60 * 1000 |
| 0.8.2 | 60 * 1000 |
| 0.9.0 | 60 * 1000 |
| 0.10.0 | 60 * 1000 |
| 0.10.1 | 5000 |
| 0.10.2 | 5000 |
| 0.11.0 | 5000 |
| 1.0 | 5000 |
| 1.1 | 5000 |
| 2.0 | 5000 |
| 2.1 | 5000 |
| 2.2 | 5000 |
| 2.3 | 5000 |
| 2.4 | 5000 |
| 2.5 | 5000 |
| 2.6 | 5000 (5 seconds) |
| 2.7 | 5000 (5 seconds) |
| 2.8 | 5000 (5 seconds) |
| 3.0 | 5000 (5 seconds) |
| 3.1 | 5000 (5 seconds) |
| 3.2 | 5000 (5 seconds) |
| 3.3 | 5000 (5 seconds) |
| 3.4 | 5000 (5 seconds) |
| 3.5 | 5000 (5 seconds) |
| 3.6 | 5000 (5 seconds) |
| 3.7 | 5000 (5 seconds) |
| 3.8 | 5000 (5 seconds) |
| 3.9 | 5000 (5 seconds) |
| 4.0 | 5000 (5 seconds) |
| 4.1 | 5000 (5 seconds) |
| 4.2 | 5000 (5 seconds) |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| consumer / throughput | 5000 | The 5s auto-commit interval is optimal: frequent enough to limit reprocessing window on restart to ~5s of records, infrequent enough to not saturate the broker with OffsetCommitRequests. Reducing to 1s triples the commit rate with no throughput benefit. |
Related Configs
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.