conduktor.io ↗

metadata.recovery.strategy — Kafka Consumer Configuration

Controls how the client recovers when none of the brokers known to it is available. If set to none, the client fails

Description

Controls how the client recovers when none of the brokers known to it is available. If set to none, the client fails. If set to rebootstrap, the client repeats the bootstrap process using bootstrap.servers. Rebootstrapping is useful when a client communicates with brokers so infrequently that the set of brokers may change entirely before the client refreshes metadata. Metadata recovery is triggered when all last-known brokers appear unavailable simultaneously. Brokers appear unavailable when disconnected and no current retry attempt is in-progress. Consider increasing reconnect.backoff.ms and reconnect.backoff.max.ms and decreasing socket.connection.setup.timeout.ms and socket.connection.setup.timeout.max.ms for the client. Rebootstrap is also triggered if connection cannot be established to any of the brokers for metadata.recovery.rebootstrap.trigger.ms milliseconds or if server requests rebootstrap.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Consumer3.8none
Consumer3.9none
Consumer4.0rebootstrap
Consumer4.1rebootstrap
Consumer4.2rebootstrap
Consumer4.3rebootstrap
Consumer4.4rebootstrap
Producer3.8none
Producer3.9none
Producer4.0rebootstrap
Producer4.1rebootstrap
Producer4.2rebootstrap
Producer4.3rebootstrap
Producer4.4rebootstrap
Connect Worker3.8none
Connect Worker3.9none
Connect Worker4.0rebootstrap
Connect Worker4.1rebootstrap
Connect Worker4.2rebootstrap
Connect Worker4.3rebootstrap
Connect Worker4.4rebootstrap
Kafka Streams4.0rebootstrap
Kafka Streams4.1rebootstrap
Kafka Streams4.2rebootstrap
Kafka Streams4.3rebootstrap
Kafka Streams4.4rebootstrap
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.