conduktor.io ↗

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

Kafka VersionDefault Value
0.8.11
0.8.21
0.9.01
0.10.01
0.10.11
0.10.21
0.11.01
1.01
1.11
2.01
2.11
2.21
2.31
2.41
2.51
2.61
2.71
2.81
3.01
3.11
3.21
3.31
3.41
3.51
3.61
3.71
3.81
3.91
4.01
4.11
4.21

Tuning Recommendation

ProfileRecommendedWhy
broker / cost2With log.cleanup.policy=compact, a single cleaner thread can fall behind on high-write-rate compacted topics, causing the dirty ratio to grow and increasing storage consumption. Two threads allow parallel compaction across different topic-partitions.

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.