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
| Component | Kafka version line | Documented default |
|---|---|---|
| Producer | 2.5 | 300000 |
| Producer | 2.6 | 300000 (5 minutes) |
| Producer | 2.7 | 300000 (5 minutes) |
| Producer | 2.8 | 300000 (5 minutes) |
| Producer | 3.0 | 300000 (5 minutes) |
| Producer | 3.1 | 300000 (5 minutes) |
| Producer | 3.2 | 300000 (5 minutes) |
| Producer | 3.3 | 300000 (5 minutes) |
| Producer | 3.4 | 300000 (5 minutes) |
| Producer | 3.5 | 300000 (5 minutes) |
| Producer | 3.6 | 300000 (5 minutes) |
| Producer | 3.7 | 300000 (5 minutes) |
| Producer | 3.8 | 300000 (5 minutes) |
| Producer | 3.9 | 300000 (5 minutes) |
| Producer | 4.0 | 300000 (5 minutes) |
| Producer | 4.1 | 300000 (5 minutes) |
| Producer | 4.2 | 300000 (5 minutes) |
| Producer | 4.3 | 300000 (5 minutes) |
| Producer | 4.4 | 300000 (5 minutes) |
Related Configs
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.