Skip to content

feat(lab-08): zero-downtime rolling deploys and rollback - #9

Merged
0x48core merged 1 commit into
mainfrom
lab/08-zero-downtime-deploy
Oct 9, 2026
Merged

0x48core merged 1 commit into
mainfrom
lab/08-zero-downtime-deploy

Conversation

@0x48core

@0x48core 0x48core commented Oct 9, 2026

Copy link
Copy Markdown
Owner
  • deploy.sh: start the new container next to the old one, wait until healthy, then stop the old one gracefully; abort and keep the old version if the new one never becomes healthy; record deploy history
  • rollback.sh: redeploy the previous successful tag
  • hello-api: drain on SIGTERM (SHUTDOWN_DELAY) by failing /health before closing the listener; unit test for draining
  • Dockerfile: --start-interval=1s so new containers turn healthy fast
  • Traefik: retry middleware and a /health service check for hello-api
  • Lab 08 guide and knowledge base with measured results (74,746 failed requests before, 0 after)

- deploy.sh: start the new container next to the old one, wait until
  healthy, then stop the old one gracefully; abort and keep the old
  version if the new one never becomes healthy; record deploy history
- rollback.sh: redeploy the previous successful tag
- hello-api: drain on SIGTERM (SHUTDOWN_DELAY) by failing /health
  before closing the listener; unit test for draining
- Dockerfile: --start-interval=1s so new containers turn healthy fast
- Traefik: retry middleware and a /health service check for hello-api
- Lab 08 guide and knowledge base with measured results
  (74,746 failed requests before, 0 after)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0x48core
0x48core merged commit db2a6db into main Oct 9, 2026
2 checks passed
@0x48core
0x48core deleted the lab/08-zero-downtime-deploy branch October 9, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant