Remove healthcheck interval configuration warning
This commit is contained in:
parent
d948784d38
commit
1d85515aac
|
@ -335,7 +335,6 @@ Below are the available options for the health check mechanism:
|
||||||
!!! info "Interval & Timeout Format"
|
!!! info "Interval & Timeout Format"
|
||||||
|
|
||||||
Interval and timeout are to be given in a format understood by [time.ParseDuration](https://golang.org/pkg/time/#ParseDuration).
|
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"
|
!!! info "Recovering Servers"
|
||||||
|
|
||||||
|
|
|
@ -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
|
followRedirects := true
|
||||||
if hc.FollowRedirects != nil {
|
if hc.FollowRedirects != nil {
|
||||||
followRedirects = *hc.FollowRedirects
|
followRedirects = *hc.FollowRedirects
|
||||||
|
|
Loading…
Reference in a new issue