log.flush.interval.messages — Kafka Broker Configuration
The number of messages accumulated on a log partition before messages are flushed to disk.
Description
The number of messages accumulated on a log partition before messages are flushed to disk.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.8.0 | 10000 |
| Broker | 0.8.1 | None |
| Broker | 0.8.2 | Long.MaxValue |
| Broker | 0.9.0 | 9223372036854775807 |
| Broker | 0.10.0 | 9223372036854775807 |
| Broker | 0.10.1 | 9223372036854775807 |
| Broker | 0.10.2 | 9223372036854775807 |
| Broker | 0.11.0 | 9223372036854775807 |
| Broker | 1.0 | 9223372036854775807 |
| Broker | 1.1 | 9223372036854775807 |
| Broker | 2.0 | 9223372036854775807 |
| Broker | 2.1 | 9223372036854775807 |
| Broker | 2.2 | 9223372036854775807 |
| Broker | 2.3 | 9223372036854775807 |
| Broker | 2.4 | 9223372036854775807 |
| Broker | 2.5 | 9223372036854775807 |
| Broker | 2.6 | 9223372036854775807 |
| Broker | 2.7 | 9223372036854775807 |
| Broker | 2.8 | 9223372036854775807 |
| Broker | 3.0 | 9223372036854775807 |
| Broker | 3.1 | 9223372036854775807 |
| Broker | 3.2 | 9223372036854775807 |
| Broker | 3.3 | 9223372036854775807 |
| Broker | 3.4 | 9223372036854775807 |
| Broker | 3.5 | 9223372036854775807 |
| Broker | 3.6 | 9223372036854775807 |
| Broker | 3.7 | 9223372036854775807 |
| Broker | 3.8 | 9223372036854775807 |
| Broker | 3.9 | 9223372036854775807 |
| Broker | 4.0 | 9223372036854775807 |
| Broker | 4.1 | 9223372036854775807 |
| Broker | 4.2 | 9223372036854775807 |
| Broker | 4.3 | 9223372036854775807 |
| Broker | 4.4 | 9223372036854775807 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / throughput | 9223372036854775807 | Controls count-triggered flushing of log data. Keep the default unless an explicit storage durability policy requires more frequent flushes. Tradeoff: Per-record flushing can severely increase I/O. Replication and minimum ISR remain necessary; fsync is not an end-to-end loss guarantee. Reference · 2026-10-27 |
| broker / durability | 9223372036854775807 | Controls count-triggered flushing of log data. Keep the default unless an explicit storage durability policy requires more frequent flushes. Tradeoff: Per-record flushing can severely increase I/O. Replication and minimum ISR remain necessary; fsync is not an end-to-end loss guarantee. Reference · 2026-10-27 |
| broker / latency | 9223372036854775807 | Controls count-triggered flushing of log data. Keep the default unless an explicit storage durability policy requires more frequent flushes. Tradeoff: Per-record flushing can severely increase I/O. Replication and minimum ISR remain necessary; fsync is not an end-to-end loss guarantee. Reference · 2026-10-27 |
Related Configs
log.flush.interval.ms · default.replication.factor · num.io.threads