conduktor.io ↗

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

Kafka VersionDefault Value
0.8.010000
0.8.1None
0.8.2Long.MaxValue
0.9.09223372036854775807
0.10.09223372036854775807
0.10.19223372036854775807
0.10.29223372036854775807
0.11.09223372036854775807
1.09223372036854775807
1.19223372036854775807
2.09223372036854775807
2.19223372036854775807
2.29223372036854775807
2.39223372036854775807
2.49223372036854775807
2.59223372036854775807
2.69223372036854775807
2.79223372036854775807
2.89223372036854775807
3.09223372036854775807
3.19223372036854775807
3.29223372036854775807
3.39223372036854775807
3.49223372036854775807
3.59223372036854775807
3.69223372036854775807
3.79223372036854775807
3.89223372036854775807
3.99223372036854775807
4.09223372036854775807
4.19223372036854775807
4.29223372036854775807

Tuning Recommendation

ProfileRecommendedWhy
broker / throughput9223372036854775807Keep OS-controlled fsync (Long.MAX_VALUE = effectively never). Forcing periodic fsync (e.g., every 10000 messages) serializes all partition writes during the flush, creating latency spikes that halve throughput on HDD-backed brokers. Rely on replication for durability instead.
broker / durability1Forcing fsync on every message ensures page cache data is committed to disk before acknowledging the write, protecting against OS-level crashes (not just JVM crashes). Without this, the OS can hold up to seconds of unflushed writes in page cache.
broker / latency9223372036854775807Keep the default (OS-managed fsync). Forcing fsync per message (setting to 1) adds 1-10ms per produce but is unnecessary — Kafka replication already provides durability. OS page cache flush is sufficient for latency.

Related Configs

log.flush.interval.ms · default.replication.factor · num.io.threads

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