conduktor.io ↗

max.compaction.lag.ms — Kafka topic Configuration

The maximum time a message will remain ineligible for compaction in the log. Only applicable for logs that are being compacted

Description

The maximum time a message will remain ineligible for compaction in the log. Only applicable for logs that are being compacted. Because the active segment is never compacted, for compacted topics this value also drives active segment rolling: the effective time-based roll threshold is the smaller of segment.ms and max.compaction.lag.ms. Active segment rolling moves records out of the active segment, after which max.compaction.lag.ms makes them eligible for compaction even if min.cleanable.dirty.ratio is not met. See log compaction.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
topic2.39223372036854775807
topic2.49223372036854775807
topic2.59223372036854775807
topic2.69223372036854775807
topic2.79223372036854775807
topic2.89223372036854775807
topic3.09223372036854775807
topic3.19223372036854775807
topic3.29223372036854775807
topic3.39223372036854775807
topic3.49223372036854775807
topic3.59223372036854775807
topic3.69223372036854775807
topic3.79223372036854775807
topic3.89223372036854775807
topic3.99223372036854775807
topic4.09223372036854775807
topic4.19223372036854775807
topic4.29223372036854775807
topic4.39223372036854775807
topic4.49223372036854775807
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.