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.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.

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

ComponentKafka version lineDocumented default
Broker0.8.10.5
Broker0.8.20.5
Broker0.9.00.5
Broker0.10.00.5
Broker0.10.10.5
Broker0.10.20.5
Broker0.11.00.5
Broker1.00.5
Broker1.10.5
Broker2.00.5
Broker2.10.5
Broker2.20.5
Broker2.30.5
Broker2.40.5
Broker2.50.5
Broker2.60.5
Broker2.70.5
Broker2.80.5
Broker3.00.5
Broker3.10.5
Broker3.20.5
Broker3.30.5
Broker3.40.5
Broker3.50.5
Broker3.60.5
Broker3.70.5
Broker3.80.5
Broker3.90.5
Broker4.00.5
Broker4.10.5
Broker4.20.5
Broker4.30.5
Broker4.40.5

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
broker / cost0.3Sets the dirty-data ratio at which a log becomes eligible for compaction, subject to other compaction constraints.

Tradeoff: A lower ratio can rewrite data more often and increase I/O. It does not immediately compact every segment.

Reference · 2026-10-27

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.