Rolling swap can start the new replica before a migration finishes #94
Labels
No labels
priority/P0
priority/P1
priority/P2
priority/P3
size/L
size/M
size/S
size/XL
size/XS
state/blocked
state/done
state/in-progress
state/in-review
state/needs-refinement
state/ready
type/bug
type/chore
type/feature
type/refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
amtronics/platform-actions#94
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
With
rolling-services, deploy-vps recreates the other services with--no-depsand then rolls the listed ones, also with--no-deps.up -dreturns as soon as a one-shot service such as a migration has started. So the new replica can start before the migration finishes, and even after it has failed. Without rolling, compose'sdepends_on: condition: service_completed_successfullyprevents that.Found while adopting the swap in suhba/rihla#417, and tested on the VPS:
--no-depswaits correctly, but re-runs a migration that has already exited (twice per deploy);up --waitreports the running one-shot as healthy and returns before it ends.Scope
noto exit, and fail the deploy (old replicas untouched) unless it exits 0. Document it.Acceptance criteria
rolling-services, when it deploys, then nothing changes.