conduktor.io ↗

min.insync.replicas — Kafka Broker Configuration

Specifies the minimum number of in-sync replicas (including the leader) required for a write to succeed when a producer sets acks to "all" (or "-1"). In the acks=all case, every in-sync replica must acknowledge a write for it to be considered successful

Description

Specifies the minimum number of in-sync replicas (including the leader) required for a write to succeed when a producer sets acks to "all" (or "-1"). In the acks=all case, every in-sync replica must acknowledge a write for it to be considered successful. E.g., if a topic has replication.factor of 3 and the ISR set includes all three replicas, then all three replicas must acknowledge an acks=all write for it to succeed, even if min.insync.replicas happens to be less than 3. If acks=all and the current ISR set contains fewer than min.insync.replicas members, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend).Regardless of the acks setting, the messages will not be visible to the consumers until they are replicated to all in-sync replicas and the min.insync.replicas condition is met.When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of "all". This ensures that a majority of replicas must persist a write before it's considered successful by the producer and it's visible to consumers.Note that when the Eligible Leader Replicas feature is enabled, the semantics of this config changes. Please refer to the ELR section for more info.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Broker0.9.01
Broker0.10.01
Broker0.10.11
Broker0.10.21
Broker0.11.01
Broker1.01
Broker1.11
Broker2.01
Broker2.11
Broker2.21
Broker2.31
Broker2.41
Broker2.51
Broker2.61
Broker2.71
Broker2.81
Broker3.01
Broker3.11
Broker3.21
Broker3.31
Broker3.41
Broker3.51
Broker3.61
Broker3.71
Broker3.81
Broker3.91
Broker4.01
Broker4.11
Broker4.21
Broker4.31
Broker4.41
topic0.11.01
topic1.01
topic1.11
topic2.01
topic2.11
topic2.21
topic2.31
topic2.41
topic2.51
topic2.61
topic2.71
topic2.81
topic3.01
topic3.11
topic3.21
topic3.31
topic3.41
topic3.51
topic3.61
topic3.71
topic3.81
topic3.91
topic4.01
topic4.11
topic4.21
topic4.31
topic4.41

Tuning Recommendation

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

ProfileProposalRationale and tradeoff
broker / durability2With acks=all, requires a minimum in-sync replica set before accepting writes. A value of two is commonly paired with three replicas.

Tradeoff: When ISR is below the minimum, writes fail rather than weaken the guarantee. Eligible-leader-replica behavior and failure recovery are version-dependent.

Reference · 2026-10-27

Related Configs

acks · replica.lag.time.max.ms · default.replication.factor · unclean.leader.election.enable · offsets.topic.replication.factor · auto.create.topics.enable

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