log.retention.check.interval.ms — Kafka Broker Configuration
The frequency in milliseconds that the log cleaner checks whether any log is eligible for deletion.
Description
The frequency in milliseconds that the log cleaner checks whether any log is eligible for deletion
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.0 | 300000 |
| 0.8.1 | 5 minutes |
| 0.8.2 | 5 minutes |
| 0.9.0 | 300000 |
| 0.10.0 | 300000 |
| 0.10.1 | 300000 |
| 0.10.2 | 300000 |
| 0.11.0 | 300000 |
| 1.0 | 300000 |
| 1.1 | 300000 |
| 2.0 | 300000 |
| 2.1 | 300000 |
| 2.2 | 300000 |
| 2.3 | 300000 |
| 2.4 | 300000 |
| 2.5 | 300000 |
| 2.6 | 300000 (5 minutes) |
| 2.7 | 300000 (5 minutes) |
| 2.8 | 300000 (5 minutes) |
| 3.0 | 300000 (5 minutes) |
| 3.1 | 300000 (5 minutes) |
| 3.2 | 300000 (5 minutes) |
| 3.3 | 300000 (5 minutes) |
| 3.4 | 300000 (5 minutes) |
| 3.5 | 300000 (5 minutes) |
| 3.6 | 300000 (5 minutes) |
| 3.7 | 300000 (5 minutes) |
| 3.8 | 300000 (5 minutes) |
| 3.9 | 300000 (5 minutes) |
| 4.0 | 300000 (5 minutes) |
| 4.1 | 300000 (5 minutes) |
| 4.2 | 300000 (5 minutes) |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| broker / cost | 60000 | The log retention cleaner checks for eligible segments every 5 minutes by default; reducing to 1 minute means expired or over-size segments are deleted sooner, preventing temporary disk spikes of up to 5 minutes × write rate between checks. |
Related Configs
log.retention.hours · log.retention.bytes · log.segment.bytes
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.