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

Default health checks to down #10494

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

bswinnerton
Copy link

What does this PR do?

By default health checks start in an up state, which is problematic for new backends that may not yet be healthy. This pull request updates the health check code to default to down so that new backends added via Docker can be given a chance to become healthy before serving traffic.

Fixes #4544.

Motivation

This is helpful for building blue/green deploys using Docker-based backends.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

By default health checks are up, which is problematic for new backends that may not yet be healthy. This commit updates the health check code to default to down. 

Fixes traefik#4544.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traefik healthcheck should not pass by default for newly discovered backends
2 participants