Monedula

Scenario 03.1.3 · Slow follower

Kafka slow follower: replica.lag.time.max.ms and the ISR

Replication · Intermediate · about 2 min · Apache Kafka 4.3

A throttled follower lags past the threshold, drops out of ISR, then rejoins when un-throttled.

Run this scenario in the playground

broker-3 lags past the threshold - evicted from ISR. t+8.100s

ISR shrinks from lag, not from a crash.

Open at this step: step 4, broker-3 lags past the threshold - evicted from ISR

What you start with

A follower stays in the ISR only while it keeps catching up to the leader's log end within replica.lag.time.max.ms. Here broker-3 is throttled so it falls behind the leader, then un-throttled - watch it lag past the threshold, drop out of the ISR, and rejoin once it catches up.

Step by step

  1. Cluster ready - ISR=3 t+0.000s Open at this step: step 1, Cluster ready - ISR=3
  2. broker-3 throttled (slow follower) t+2.050s A slow replica stops advancing its log-end offset. Open at this step: step 2, broker-3 throttled (slow follower)
  3. broker-3 falling behind - still in ISR t+6.100s Lag is below the eviction threshold so far. Open at this step: step 3, broker-3 falling behind - still in ISR
  4. broker-3 lags past the threshold - evicted from ISR t+8.100s ISR shrinks from lag, not from a crash. Open at this step: step 4, broker-3 lags past the threshold - evicted from ISR
  5. Un-throttled - broker-3 catches up and rejoins ISR t+11.100s Open at this step: step 5, Un-throttled - broker-3 catches up and rejoins ISR

The takeaway

A follower is judged on freshness, not absolute position: lagging past the time threshold evicts it from the ISR, and catching back up readmits it automatically - no operator intervention needed.

Configs in this scenario

Embed this scenario

Paste this into a blog post, a course page or your team's docs. The scenario plays inside your page, and the link under it points readers to this walkthrough.

<iframe src="https://monedula.dev/kafka-simulator/embed/?scenario=03.1.3" title="Kafka Simulator: Slow follower" width="100%" height="520" style="border:1px solid #d0d0d0;border-radius:8px" loading="lazy"></iframe>
<p><a href="https://monedula.dev/kafka-simulator/scenarios/slow-follower/">Kafka slow follower: replica.lag.time.max.ms and the ISR</a></p>

Further reading

Apache Kafka documentation

Troubleshooting

More in Replication

All scenarios