Pcornel
Storage · Replication

Replication Lag

Cheat sheet · https://pcornel.dk/topic.php?topic=4239

Back to the Topic

Answer

Lag can arise from source burst rate, change-capture backlog, transport limits, target apply latency, pauses, throttling or dependency failure. The metric must be interpreted using its exact vendor definition.

Remember

  • Lag ≠ network RTT.
  • Zero queued bytes ≠ target applied checkpoint unless the metric defines it that way.
  • Current lag ≠ achieved RPO during a later incident.
  • Average lag can hide spikes and stalled checkpoints.

First checks

  • zfs list -t snapshot -o name,creation -r <dst> | tail -1 — newest replicated snapshot
  • Measure-VMReplication — Hyper-V lag stats
  • rbd mirror image status — Ceph lag

Commands

zfs receive -s
zfs send -t <token>

Verify in this order

change rate vs link capacity → lag

Where it usually breaks

First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.

Replication → Replication Lag proof map

Storage boundaryWhat to verifyProof limit
Identity / stateCorrect object, source/target or snapshot point and same-window timestampsInventory alone does not prove data correctness
Dependency pathChange capture, queue/transport, target apply and currency checkpointA healthy adjacent component is not end-to-end proof
Failure boundaryA lag metric proves only the distance represented by that metric at that time; it does not automatically equal business RPO or data-loss exposure.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Replication Lag: source and target identity/ownership are unambiguous, replication advances through the expected checkpoint, target apply succeeds, and the required read-back or promotion test matches the protected state.Close only after original read-back/recovery test and protection-state verification

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4239

Confirmation

Confirm action

Continue?