Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve zero downtime (healthcheck) and rollback documentation #21

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

nktnet1
Copy link
Contributor

@nktnet1 nktnet1 commented Feb 5, 2025

@Siumauricio improved documentations for zero-downtime.

I ran into a lot of issues with this for a Dockerfile-based deployment using NextJS - it was difficult to debug due to limited logging available for healthchecks.

The main issues were:

  1. curl is not installed in alphine-based images (only wget is available by default)
  2. my docker image built from nextjs standalone output was listening to a weird host (10.0.1.41). Needed to configure the HOSTNAME environment variable to 0.0.0.0
  3. the localhost command used in wget/curl was resolving to ::1 (IPv6 loopback) instead of 127.0.0.1 (IPv4), resulting in 404.

I've updated the documentations for now, but some logging for the healthcheck, or even an icon/indicator to differentiate between healthy vs perpetually restarting, would be helpful.

@nktnet1 nktnet1 requested a review from Siumauricio as a code owner February 5, 2025 03:10
@nktnet1 nktnet1 changed the title Zero downtime improvements Improve zero downtime (healthcheck) and rollback documentation Feb 5, 2025
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