Increase pool instance count to account for CLI

This commit is contained in:
Jake Barnby
2022-11-18 21:07:57 +13:00
parent 57dd721a61
commit 35740fe65b
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -106,7 +106,6 @@ App::get('/v1/project/usage')
'executions' => $stats[$metrics[6]] ?? [],
'buckets' => $stats[$metrics[7]] ?? [],
]);
}
$response->dynamic($usage, Response::MODEL_USAGE_PROJECT);
+1 -1
View File
@@ -551,7 +551,7 @@ $register->set('pools', function () {
],
];
$instances = 2; // REST, Realtime
$instances = 3; // REST, Realtime, CLI
$workerCount = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6));
$maxConnections = App::getenv('_APP_CONNECTIONS_MAX', 251);
$instanceConnections = $maxConnections / $instances;