conduktor.io ↗

log.cleaner.min.cleanable.ratio — Kafka Broker Configuration

The minimum ratio of dirty log to total log for a log to eligible for cleaning. If the log.

Description

The minimum ratio of dirty log to total log for a log to eligible for cleaning. If the log.cleaner.max.compaction.lag.ms or the log.cleaner.min.compaction.lag.ms configurations are also specified, then the log compactor considers the log eligible for compaction as soon as either: (i) the dirty ratio threshold has been met and the log has had dirty (uncompacted) records for at least the log.cleaner.min.compaction.lag.ms duration, or (ii) if the log has had dirty (uncompacted) records for at most the log.cleaner.max.compaction.lag.ms period.

Default Values by Kafka Version

Kafka VersionDefault Value
0.8.10.5
0.8.20.5
0.9.00.5
0.10.00.5
0.10.10.5
0.10.20.5
0.11.00.5
1.00.5
1.10.5
2.00.5
2.10.5
2.20.5
2.30.5
2.40.5
2.50.5
2.60.5
2.70.5
2.80.5
3.00.5
3.10.5
3.20.5
3.30.5
3.40.5
3.50.5
3.60.5
3.70.5
3.80.5
3.90.5
4.00.5
4.10.5
4.20.5

Tuning Recommendation

ProfileRecommendedWhy
broker / cost0.3A partition is eligible for compaction when its dirty (uncompacted) bytes exceed this fraction of total log bytes. Lowering from 0.5 to 0.3 triggers compaction earlier, keeping the log more aggressively compacted at the cost of more frequent cleaner cycles.

Related Configs

log.cleaner.threads · log.cleanup.policy · log.cleaner.dedupe.buffer.size

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