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

Allow short healthcheck interval with long timeout #9832

Merged

Conversation

kevinmcconnell
Copy link
Contributor

@kevinmcconnell kevinmcconnell commented Apr 9, 2023

What does this PR do?

Removes the restriction on healthchecks that requires the check interval to be longer than its timeout.
Fixes #9812

Motivation

I'd like to configure frequent healthchecks so that changes to health status are discovered quickly. However this currently requires the timeout to be short too. If a check endpoint is occassionally slow to respond, this can lead to false negatives. Ideally a longer timeout is allowed even when the interval is short.

More

  • I've updated the documentation to remove mention of the old restriction.
  • As this is a change to the previously documented behaviour, I've also added some basic test coverage for how these timeout & interval limits are handled.

Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

Thanks!

@ldez ldez removed the breaking label Aug 8, 2023
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez force-pushed the healthcheck-interval-remove-restriction branch from 974838f to 36d509e Compare August 8, 2023 12:59
@ldez ldez changed the base branch from master to v3.0 August 8, 2023 12:59
@ldez ldez removed the bot/no-merge label Aug 8, 2023
kevinmcconnell and others added 2 commits August 8, 2023 13:38
Previously, a healthcheck's interval was required to be longer than its
timeout.

Removing this restriction allows configuring frequent healthchecks
against endpoints that may, at times, be slow to respond.
@traefiker traefiker force-pushed the healthcheck-interval-remove-restriction branch from 7f752dc to 7e46f48 Compare August 8, 2023 13:38
@traefiker traefiker merged commit 55e00be into traefik:v3.0 Aug 8, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feature: allow healthcheck interval shorter than timeout
5 participants