conduktor.io ↗

unclean.leader.election.enable — Kafka Broker Configuration

Indicates whether to enable replicas not in the ISR set to be elected as leader as a last resort, even though doing so may result in data lossNote: In KRaft mode, when enabling this config dynamically, it needs to wait for the unclean leader election thread to trigger election periodically (default is 5 minutes). Please run kafka-leader-election.sh with unclean option to trigger the unclean leader election immediately if needed.

Description

Indicates whether to enable replicas not in the ISR set to be elected as leader as a last resort, even though doing so may result in data lossNote: In KRaft mode, when enabling this config dynamically, it needs to wait for the unclean leader election thread to trigger election periodically (default is 5 minutes). Please run kafka-leader-election.sh with unclean option to trigger the unclean leader election immediately if needed.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Broker0.8.2true
Broker0.9.0true
Broker0.10.0true
Broker0.10.1true
Broker0.10.2true
Broker0.11.0false
Broker1.0false
Broker1.1false
Broker2.0false
Broker2.1false
Broker2.2false
Broker2.3false
Broker2.4false
Broker2.5false
Broker2.6false
Broker2.7false
Broker2.8false
Broker3.0false
Broker3.1false
Broker3.2false
Broker3.3false
Broker3.4false
Broker3.5false
Broker3.6false
Broker3.7false
Broker3.8false
Broker3.9false
Broker4.0false
Broker4.1false
Broker4.2false
Broker4.3false
Broker4.4false
topic0.11.0false
topic1.0false
topic1.1false
topic2.0false
topic2.1false
topic2.2false
topic2.3false
topic2.4false
topic2.5false
topic2.6false
topic2.7false
topic2.8false
topic3.0false
topic3.1false
topic3.2false
topic3.3false
topic3.4false
topic3.5false
topic3.6false
topic3.7false
topic3.8false
topic3.9false
topic4.0false
topic4.1false
topic4.2false
topic4.3false
topic4.4false

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
broker / durabilityfalseKeeping false avoids electing an out-of-sync replica through unclean election.

Tradeoff: Disabling unclean election can leave a partition unavailable until an eligible replica returns. Enabling it can lose previously acknowledged data.

Reference · 2026-10-27

Related Configs

replica.lag.time.max.ms · default.replication.factor · min.insync.replicas

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.