Increase healthcheck timeout to 50 seconds per service
@@ -24,7 +24,7 @@ func runHealthcheck(host *hosts.Host, port int, useTLS bool, serviceName string,
if err != nil {
return fmt.Errorf("Failed to initiate new HTTP client for service [%s] for host [%s]", serviceName, host.Address)
}
- for retries := 0; retries < 3; retries++ {
+ for retries := 0; retries < 10; retries++ {
if err = getHealthz(client, useTLS, serviceName, host.Address); err != nil {
logrus.Debugf("[healthcheck] %v", err)
time.Sleep(5 * time.Second)
