mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update env default max connections
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user