liveBook · Manning

Min.insync.replicas

min.insync.replicas is a Kafka setting specifying the minimum number of in-sync replicas that must acknowledge a write for it to succeed.

How 3 Manning books explain it

Apache Kafka in Action

The minimum in-sync replicas setting specifies the smallest number of replicas that must acknowledge a write for it to succeed.

How it is used
Protects acknowledged writes by requiring a minimum in-sync replica count when producers use acks=all.
How deep it goes
Works through topic configuration, broker shutdown, ISR inspection, and producer errors; stops short of detailing replica catch-up.
Examples
Tests a three-replica price-changelog topic by stopping two brokers and observing NOT_ENOUGH_REPLICAS.
What you can do after
Operate/configure it with kafka-topics.sh and acks=all to set a failure threshold and recognize blocked writes.

Read how Apache Kafka in Action explains min.insync.replicas →

Kafka Streams in Action, Second Edition

min.insync.replicas is a Kafka topic configuration specifying the minimum number of in-sync replicas required for a write to succeed.

How it is used
Controls whether Kafka accepts writes when too few replicas remain in sync, especially alongside producer acknowledgments.
How deep it goes
Explains leader counting, ISR checks, rejected writes, retries, and durability trade-offs, stopping short of client implementation details.
Examples
Uses replication factor 3 with acks=all, contrasting the default threshold of 1 with min.insync.replicas=2.
What you can do after
Operate/configure Kafka topics to trade write availability for stronger durability and recognize insufficient-replica failures.

Read how Kafka Streams in Action, Second Edition explains min.insync.replicas →

Kafka for Architects

The minimum in-sync replicas setting is the configured number of synchronized partition replicas that must acknowledge a write for it to be considered successful.

How it is used
Protects Kafka write durability by requiring acknowledgments from a configured number of synchronized replicas.
How deep it goes
Defines ISR membership, write failure behavior, defaults, and the replication-factor trade-off without detailing broker internals.
Examples
Uses a three-broker Customer 360 deployment with replication factor 3 and min.insync.replicas set to 2.
What you can do after
Configure topic durability by pairing a replication factor with a minimum ISR appropriate to failure tolerance.

Read how Kafka for Architects explains min.insync.replicas →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.