metadata.max.retention.ms — Kafka Broker Configuration
The number of milliseconds to keep a metadata log file or snapshot before deleting it. Since at least one snapshot must exist before any logs can be deleted, this is a soft limit.
Description
The number of milliseconds to keep a metadata log file or snapshot before deleting it. Since at least one snapshot must exist before any logs can be deleted, this is a soft limit.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 3.0 | 604800000 (7 days) |
| 3.1 | 604800000 (7 days) |
| 3.2 | 604800000 (7 days) |
| 3.3 | 604800000 (7 days) |
| 3.4 | 604800000 (7 days) |
| 3.5 | 604800000 (7 days) |
| 3.6 | 604800000 (7 days) |
| 3.7 | 604800000 (7 days) |
| 3.8 | 604800000 (7 days) |
| 3.9 | 604800000 (7 days) |
| 4.0 | 604800000 (7 days) |
| 4.1 | 604800000 (7 days) |
| 4.2 | 604800000 (7 days) |
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.