From cd23ce4c24023076fea1c87e789341a128d38e2b Mon Sep 17 00:00:00 2001 From: Ori Shoshan Date: Sun, 3 Nov 2024 19:05:52 +0200 Subject: [PATCH] Increase health check timeout to 90 seconds - should be greater than internal timeouts in #508 (#509) --- src/operator/health/reconciletime.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operator/health/reconciletime.go b/src/operator/health/reconciletime.go index 45594e8da..e50dc4f7f 100644 --- a/src/operator/health/reconciletime.go +++ b/src/operator/health/reconciletime.go @@ -32,8 +32,8 @@ func ElapsedTimeSinceReconcileStartWithoutSuccessfulReconcile() time.Duration { } func Checker(*http.Request) error { - if ElapsedTimeSinceReconcileStartWithoutSuccessfulReconcile() > 30*time.Second { - err := errors.Errorf("last reconcile took more than 5 minutes - failing healthcheck") + if ElapsedTimeSinceReconcileStartWithoutSuccessfulReconcile() > 90*time.Second { + err := errors.Errorf("last reconcile took more than 90 seconds - failing healthcheck") logrus.WithError(err).Error("Health check failed due to long reconcile time - may be normal if just enabled enforcement for the first time on a large cluster, if it recovers") return err }