carlos / platform Public

runbook: a host waits 15 minutes after an unclean release

New region HA runbook section after "A box is holding hosts it does
not serve", from the approved copy review (five strings, no edits).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 285a81e42ada880bf1b9a9470993b2ccfc8939ba parent b126ea5
1 file changed, +10 −0
  • docs/region-ha-runbook.md +10 −0

CI passed — run details

Intent

Human

<paseo-system version="1" kind="agent-message" source-agent-id="8a3d302a-eac7-407c-b61c-f5ccc66b5544" message-id="718558dc-9333-43bc-bf7c-e48dfd97fec0"> Agent manager 8a3d302: excellent, thank you. Two follow-ups, small: 1. The files-only case worries me: a host whose files publish never completes would wait 15 min on EVERY drain handover, breaking held requests for it. (a) Inventory, read-only: how many hosts in the dev IE and flagship US pools (and HA canaries) have a files publish that never completes today. (b) Is there a real late-write hazard for files (are file objects content-addressed or overwritten in place by name)? If files can&apos;t collide like L0 TXIDs, propose (Astra one round) that a files-only unclean release opens at once and only DB-replicated unclean waits. Stop and tell before merging that. 2. Generations spec: I&apos;m putting §10 Q1-Q5 to Paul with your recommendations; no 4th round unless he asks. Leave design-ha-generations unmerged until he answers. The runbook copy review is with Paul; apply verbatim when result.json lands. </paseo-system>

Attributed to this commit: 9.09 g CO₂e (1,187,820 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on ha-unclean-runbook, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/region-ha-runbook.md b/docs/region-ha-runbook.md
index 21061beea..8c0bbdd83 100644
--- a/docs/region-ha-runbook.md
+++ b/docs/region-ha-runbook.md
@@ -321,6 +321,16 @@ If the box role itself must read it, widen `ssm_parameter_arn` to include that o
2. If it is a group member, terminate it in its group with `--no-should-decrement-desired-capacity`.
3. Never terminate a fixed box without a separate decision. Check its storage access and its agent first.
+## A host waits 15 minutes after an unclean release
+
+When a box lets a host go without a clean release, after the host's database had started replicating, no box can wake the host again until 15 minutes after that release. Requests to the host get 503 with a `Retry-After` that counts down to that time.
+
+This happens when the release's final sync fails or times out, when the write fence stops an instance during a storage outage, or when the host's files could not all be published. The wait gives any upload the old box still had in flight time to land before another box starts writing the same data.
+
+The host's lock reads `released/v1;…`, its `carlos_release` has `"clean": false` and no `"settled": true`, and the journal of the box trying to wake it says `LEASE HELD` by that `released/v1` owner.
+
+Nothing: the host wakes on the next request after the 15 minutes. Do not edit or delete the lock to hurry it, because that is exactly the race the wait prevents. If a host waits like this after every sleep, its files are probably never published completely, for example because of a file over the size limit. The release's journal line names the file; fix it on the instance.
+
## Install chrony on a fixed box
Before G3 step 4 on the G3 card, install chrony on each named fixed box during an attended maintenance window. Use the reviewed `scripts/region-ha-g3/chrony-fixed-box.sh` through SSM as root, with approval for the named box. Group boxes already configure Amazon Time Sync at first boot.