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
| Component | Kafka version line | Documented default |
|---|---|---|
| topic | 2.3 | 9223372036854775807 |
| topic | 2.4 | 9223372036854775807 |
| topic | 2.5 | 9223372036854775807 |
| topic | 2.6 | 9223372036854775807 |
| topic | 2.7 | 9223372036854775807 |
| topic | 2.8 | 9223372036854775807 |
| topic | 3.0 | 9223372036854775807 |
| topic | 3.1 | 9223372036854775807 |
| topic | 3.2 | 9223372036854775807 |
| topic | 3.3 | 9223372036854775807 |
| topic | 3.4 | 9223372036854775807 |
| topic | 3.5 | 9223372036854775807 |
| topic | 3.6 | 9223372036854775807 |
| topic | 3.7 | 9223372036854775807 |
| topic | 3.8 | 9223372036854775807 |
| topic | 3.9 | 9223372036854775807 |
| topic | 4.0 | 9223372036854775807 |
| topic | 4.1 | 9223372036854775807 |
| topic | 4.2 | 9223372036854775807 |
| topic | 4.3 | 9223372036854775807 |
| topic | 4.4 | 9223372036854775807 |
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.