Skip to content

Commit

Permalink
Increase health check timeout to 90 seconds - should be greater than …
Browse files Browse the repository at this point in the history
…internal timeouts in #508 (#509)
  • Loading branch information
orishoshan authored Nov 3, 2024
1 parent 27f8c8b commit cd23ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/health/reconciletime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cd23ce4

Please sign in to comment.