Allow short healthcheck interval with long timeout
This commit is contained in:
parent
d6457e6cbb
commit
55e00be36e
3 changed files with 51 additions and 6 deletions
|
@ -69,11 +69,6 @@ func NewServiceHealthChecker(ctx context.Context, metrics metricsHealthCheck, co
|
|||
timeout = time.Duration(dynamic.DefaultHealthCheckTimeout)
|
||||
}
|
||||
|
||||
if timeout >= interval {
|
||||
logger.Warn().Msgf("Health check timeout should be lower than the health check interval. Interval set to timeout + 1 second (%s).", interval)
|
||||
interval = timeout + time.Second
|
||||
}
|
||||
|
||||
client := &http.Client{
|
||||
Transport: transport,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue