carlos / platform Public

Region HA: storage fencing design (N-HA9), the precondition for fast takeover open

Part of the region HA end goal (G5, recorded on #421, Paul 2026-11-01). Nothing has been designed yet.

Why. N-HA9 cut every takeover faster than the dead holder's 15-minute lease. A holder that is hung rather than dead may still be finishing a CompleteMultipartUpload or writing replica or manifest keys, and those keys carry no ownership generation. So today:

  • a crashed agent's host is down for the rest of its lease (12 m 04 s in the P1b-2 drill);
  • a terminated box's host is down until its lease expires (14 m 29 s in the P1b-1 drill).

The same hazard already exists for legacy takeovers inside the 15-minute margin.

Goal. A new owner can take over in seconds, because a late write from the old owner can no longer land. Writes need a generation, or a fence the store enforces, that the new owner advances before serving. Options to compare include:

  • per-generation key prefixes with a manifest switch;
  • conditional writes on a fence object;
  • IAM-level revocation, as in the durability fence (carlos system fence, ec2:SourceInstanceARN).

Scope. Litestream replica writes, files manifests and objects, escrow, release markers. Design it alongside P4 and P5.