conduktor.io ↗

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 VersionDefault Value
0.8.0600 * 1000
0.8.1600 * 1000
0.8.2600 * 1000
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.