Berildocs GitHub

Memory cards

Fencing stops the old primary from writing

confidence: highupdated: 2026-11-25status: activedatabasefailoverfencing

Claim#

The old primary must be fenced or demoted. A split brain writes two histories.

Test#

Pause the network. Promote the replica. Resume the old primary.

Proof#

One writable primary and no divergent commits.

Failure modes#

A fence that depends on the old host is weak. A stale DNS record can route writers.