min.cleanable.dirty.ratio
The topic property that sets how much of a log must be uncompacted before the cleaner compacts it.
In more detail
The default of 0.5 waits until half the log is dirty, meaning not yet compacted. The course sets 0.01 so compaction runs almost immediately in the demo.
Related terms
- log compaction — A cleanup mode in which the broker keeps at least the latest record for every key and removes older records with the same key.
- cleanup.policy — The topic property that chooses how old records are removed: delete by retention, compact by key, or both.
Taught in
- Log Compaction: A Topic As A Table — Apache Kafka & Event Streaming