From e1b08553365c48b45b4ccbb7bf0cc86e705e5797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 19 Feb 2024 16:29:10 +0100 Subject: [PATCH] Update app/controllers/api/health.php --- app/controllers/api/health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index e7ac0e8f39..595b296795 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -57,7 +57,7 @@ App::get('/v1/health/version') $stats = $http->stats(); $idleWorkers = $stats['idle_worker_num'] ?? 0; - $minIdleWorkers = \intval(App::getEnv('_APP_HEALTHCHECK_MIN_IDLE_WORKERS', '2')); + $minIdleWorkers = \intval(App::getEnv('_APP_HEALTHCHECK_MIN_IDLE_WORKERS', '1')); if ($minIdleWorkers !== 0 && $idleWorkers < $minIdleWorkers) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Can not process more requests at the moment.');