Repository navigation
Pause in a release layout, the ledger backup off the service lock, a stale worker row - #122
Merged
Merged
Conversation
A release's mia.yaml is a link to the installation's one copy, and a worker's sandbox binds that copy as a single file. Written by rename, a pause replaced the link with a file of the release's own and reached no running worker. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The copy goes to the shared disk every keeper.minutes and was made under the service's lock, so every request waited for it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… old paths Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…es no restart The ledger keeps a service's last heartbeat after mia.yaml stops naming it, and every sweep then said its worker ran old code. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three fixes found while running an installation in the release layout, and three corrections to
docs/deployment.md.Fixes
mia pause/mia resumechange nothing that runs (1c3a765)mia.yamlis a link to the installation's one copy. The pause was written by rename, which replaced the link with a file of the release's own and left the shared copy as it was.mia.yamlas a single file. A file renamed over it never reaches a running worker.set_pausenow writes the file the manifest path leads to, in place: a link stays a link and the inode stays the inode. A# ponytail:comment names the ceiling (a reader in the instant of the write can see a torn file, whichpausedreads as not paused) and the upgrade (a flag file of its own in a directory the sandbox mounts).Every request waits for the timed ledger backup (
6d779f7)keeper.minutes, copies the whole ledger to the shared disk, and held the service's lock while it did.A service that left
mia.yamlowes a restart forever (c554b53)Docs (
docs/deployment.md)828c6df: csub refuses a mount that goes through a link, so a round that stopped before a move of the roots is restarted, not resumed.403ee9e: only the operator's account writes what an installation runs or trusts, parent directories included.fe0bd38: a move rewritesdraws.descriptortoo, and the draw archives of retired buffers keep the old paths, so the links stay while an archived run may be replayed.Checks
test_set_pause_edits_the_file_a_release_links_to_and_keeps_its_inode,test_backup_does_not_take_the_service_lock,test_incident_2026_11_26_a_worker_row_of_a_service_that_left_the_installation_owes_no_restart.@StephanPreibisch @jakobtroidl