Increase pool instance count to account for CLI
This commit is contained in:
parent
57dd721a61
commit
35740fe65b
2 changed files with 1 additions and 2 deletions
|
@ -106,7 +106,6 @@ App::get('/v1/project/usage')
|
||||||
'executions' => $stats[$metrics[6]] ?? [],
|
'executions' => $stats[$metrics[6]] ?? [],
|
||||||
'buckets' => $stats[$metrics[7]] ?? [],
|
'buckets' => $stats[$metrics[7]] ?? [],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$response->dynamic($usage, Response::MODEL_USAGE_PROJECT);
|
$response->dynamic($usage, Response::MODEL_USAGE_PROJECT);
|
||||||
|
|
|
@ -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));
|
$workerCount = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||||
$maxConnections = App::getenv('_APP_CONNECTIONS_MAX', 251);
|
$maxConnections = App::getenv('_APP_CONNECTIONS_MAX', 251);
|
||||||
$instanceConnections = $maxConnections / $instances;
|
$instanceConnections = $maxConnections / $instances;
|
||||||
|
|
Loading…
Reference in a new issue