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

[CI/Build] Add health check #4868

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pseudotensor
Copy link

@robertgshaw2-neuralmagic
Copy link
Collaborator

Can you explain a bit about what HEALTHCHECK does?

@pseudotensor
Copy link
Author

pseudotensor commented May 16, 2024

Can you explain a bit about what HEALTHCHECK does?

It's explained in those links. But basically, if one uses autoheal docker image to monitor other images that have the HEALTHCHECK present, then that autoheal will restart the image if the health condition fails. Often vLLM fails, but the entire image still goes on in unhealthy state.

It's built into moby, just not built into docker and is currently as separate image as explained in those links: moby/moby#23218

# https://docs.docker.com/reference/dockerfile/#healthcheck
# https://hub.docker.com/r/willfarrell/autoheal/
HEALTHCHECK --interval=5m --timeout=10s \
CMD curl -f http://localhost/health || exit 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but 4 spaces indent is standard for this file

Suggested change
CMD curl -f http://localhost/health || exit 1
CMD curl -f http://localhost/health || exit 1

Comment on lines +141 to +142
# https://docs.docker.com/reference/dockerfile/#healthcheck
# https://hub.docker.com/r/willfarrell/autoheal/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave a written out comment before sharing these links

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.

[Feature]: Health check for restart policy
3 participants