1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

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
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 1 additions and 2 deletions

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);

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;