topic.metadata.refresh.interval.ms — Kafka Producer Configuration
The producer generally refreshes the topic metadata from brokers when there is a failure (partition missing, leader not available…). It will also poll regularly (default: every 10min so 600000ms).
Description
The producer generally refreshes the topic metadata from brokers when there is a failure (partition missing, leader not available…). It will also poll regularly (default: every 10min so 600000ms). If you set this to a negative value, metadata will only get refreshed on failure. If you set this to zero, the metadata will get refreshed after each message sent (not recommended). Important note: the refresh happen only AFTER the message is sent, so if the producer never sends a message the metadata is never refreshed
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.0 | 600 * 1000 |
| 0.8.1 | 600 * 1000 |
| 0.8.2 | 600 * 1000 |
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.