metadata.max.idle.ms — Kafka Producer Configuration
Controls how long the producer will cache metadata for a topic that's idle. If the elapsed time since a topic was last produced to exceeds the metadata idle duration, then the topic's metadata is forgotten and the next access to it will force a metadata fetch request.
Description
Controls how long the producer will cache metadata for a topic that's idle. If the elapsed time since a topic was last produced to exceeds the metadata idle duration, then the topic's metadata is forgotten and the next access to it will force a metadata fetch request.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 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) |
Related Configs
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.