From c4be0260c3a3cd2637de996c004dfc60b9ecdf57 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 15 Nov 2022 20:36:04 +1300 Subject: [PATCH] Update env default max connections --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init.php b/app/init.php index 8b9020f25d..7fd6acdcd1 100644 --- a/app/init.php +++ b/app/init.php @@ -1133,7 +1133,7 @@ function getWorkerPoolSize(): int { $reservedConnections = APP_DEFAULT_POOL_SIZE; // Pool of default size is reserved for the HTTP API $workerCount = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6)); - $maxConnections = App::getenv('_APP_DB_MAX_CONNECTIONS', 1001); + $maxConnections = App::getenv('_APP_DB_MAX_CONNECTIONS', 251); $workerConnections = $maxConnections - $reservedConnections; if ($workerCount > $workerConnections) {