background.threads — Kafka Broker Configuration
The number of threads to use for various background processing tasks.
Description
The number of threads to use for various background processing tasks
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.1 | 4 |
| 0.8.2 | 10 |
| 0.9.0 | 10 |
| 0.10.0 | 10 |
| 0.10.1 | 10 |
| 0.10.2 | 10 |
| 0.11.0 | 10 |
| 1.0 | 10 |
| 1.1 | 10 |
| 2.0 | 10 |
| 2.1 | 10 |
| 2.2 | 10 |
| 2.3 | 10 |
| 2.4 | 10 |
| 2.5 | 10 |
| 2.6 | 10 |
| 2.7 | 10 |
| 2.8 | 10 |
| 3.0 | 10 |
| 3.1 | 10 |
| 3.2 | 10 |
| 3.3 | 10 |
| 3.4 | 10 |
| 3.5 | 10 |
| 3.6 | 10 |
| 3.7 | 10 |
| 3.8 | 10 |
| 3.9 | 10 |
| 4.0 | 10 |
| 4.1 | 10 |
| 4.2 | 10 |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| broker / throughput | 20 | Background threads handle log segment deletion, index truncation, and leader election callbacks. Under high write rates with frequent segment rolls, the deletion queue can back up with 10 threads, causing disk usage to spike while segments await deletion. |
Related Configs
log.segment.bytes · log.segment.delete.delay.ms · log.retention.bytes
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.