From 1d85515aacd550867644913c4011f61d2597fdc0 Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 8 Aug 2023 18:10:05 +0200 Subject: [PATCH] Remove healthcheck interval configuration warning --- docs/content/routing/services/index.md | 1 - pkg/server/service/service.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/docs/content/routing/services/index.md b/docs/content/routing/services/index.md index bd1d2f136..3a28877bd 100644 --- a/docs/content/routing/services/index.md +++ b/docs/content/routing/services/index.md @@ -335,7 +335,6 @@ Below are the available options for the health check mechanism: !!! info "Interval & Timeout Format" Interval and timeout are to be given in a format understood by [time.ParseDuration](https://golang.org/pkg/time/#ParseDuration). - The interval must be greater than the timeout. If configuration doesn't reflect this, the interval will be set to timeout + 1 second. !!! info "Recovering Servers" diff --git a/pkg/server/service/service.go b/pkg/server/service/service.go index a29208aa6..39dacd5ad 100644 --- a/pkg/server/service/service.go +++ b/pkg/server/service/service.go @@ -351,10 +351,6 @@ func buildHealthCheckOptions(ctx context.Context, lb healthcheck.Balancer, backe } } - if timeout >= interval { - logger.Warnf("Health check timeout for backend '%s' should be lower than the health check interval. Interval set to timeout + 1 second (%s).", backend, interval) - } - followRedirects := true if hc.FollowRedirects != nil { followRedirects = *hc.FollowRedirects