log.cleaner.threads — Kafka Broker Configuration
The number of background threads to use for log cleaning
Description
The number of background threads to use for log cleaning
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.8.1 | 1 |
| Broker | 0.8.2 | 1 |
| Broker | 0.9.0 | 1 |
| Broker | 0.10.0 | 1 |
| Broker | 0.10.1 | 1 |
| Broker | 0.10.2 | 1 |
| Broker | 0.11.0 | 1 |
| Broker | 1.0 | 1 |
| Broker | 1.1 | 1 |
| Broker | 2.0 | 1 |
| Broker | 2.1 | 1 |
| Broker | 2.2 | 1 |
| Broker | 2.3 | 1 |
| Broker | 2.4 | 1 |
| Broker | 2.5 | 1 |
| Broker | 2.6 | 1 |
| Broker | 2.7 | 1 |
| Broker | 2.8 | 1 |
| Broker | 3.0 | 1 |
| Broker | 3.1 | 1 |
| Broker | 3.2 | 1 |
| Broker | 3.3 | 1 |
| Broker | 3.4 | 1 |
| Broker | 3.5 | 1 |
| Broker | 3.6 | 1 |
| Broker | 3.7 | 1 |
| Broker | 3.8 | 1 |
| Broker | 3.9 | 1 |
| Broker | 4.0 | 1 |
| Broker | 4.1 | 1 |
| Broker | 4.2 | 1 |
| Broker | 4.3 | 1 |
| Broker | 4.4 | 1 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / cost | 2 | Sizes the compaction cleaner thread pool. Tradeoff: More cleaner concurrency consumes CPU and I/O and shares the configured cleaner buffer budget. Reference · 2026-10-27 |
Related Configs
log.cleaner.io.max.bytes.per.second · log.cleanup.policy · log.cleaner.dedupe.buffer.size · log.cleaner.min.cleanable.ratio
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.