Pcornel
Storage · Replication

Synchronous Replication

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

Back to the Topic

Answer

The write path is latency-coupled to the remote side: source commit, network transport and target commit/acknowledgement participate in the application-visible completion time according to product policy.

Remember

  • Synchronous ≠ zero application downtime.
  • RPO near zero depends on the relationship remaining healthy and on the exact acknowledgement/durability semantics.
  • Low network RTT ≠ target storage latency is low.
  • Two copies ≠ backup/version history.

First checks

  • array: show sync mirror status — sync state
  • drbdadm status — DRBD (protocol C)
  • ping -c 100 <remote> — RTT (latency budget)

Verify in this order

write → local + remote → ack

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 → Synchronous Replication 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 synchronous acknowledgement proves the configured source/target commit condition was satisfied for that write; it does not prove future availability or application consistency beyond the protected write boundary.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Synchronous Replication: 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=4232

Confirmation

Confirm action

Continue?