conduktor.io ↗

log.flush.interval.ms — Kafka Broker Configuration

The maximum time in ms that a message in any topic is kept in memory before flushed to disk. If not set, the value in log.

Description

The maximum time in ms that a message in any topic is kept in memory before flushed to disk. If not set, the value in log.flush.scheduler.interval.ms is used

Default Values by Kafka Version

Kafka VersionDefault Value
0.8.03000
0.8.1None
0.8.2Long.MaxValue
0.9.0null
0.10.0null
0.10.1null
0.10.2null
0.11.0null
1.0null
1.1null
2.0null
2.1null
2.2null
2.3null
2.4null
2.5null
2.6null
2.7null
2.8null
3.0null
3.1null
3.2null
3.3null
3.4null
3.5null
3.6null
3.7null
3.8null
3.9null
4.0null
4.1null
4.2null

Tuning Recommendation

ProfileRecommendedWhy
broker / durability1000If per-message fsync is too expensive, a 1-second periodic flush limits the data loss window to at most 1 second of writes in an OS crash scenario. This is a reasonable middle ground between pure OS-managed flushing (loss window = minutes) and per-message fsync.

Related Configs

log.flush.interval.messages · num.io.threads

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.