mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
feat: Coroutine adjustments
This commit is contained in:
parent
77b593dae5
commit
a4f675c632
2 changed files with 2 additions and 9 deletions
2
.env
2
.env
|
|
@ -1,7 +1,7 @@
|
|||
_APP_ENV=development
|
||||
_APP_EDITION=self-hosted
|
||||
_APP_LOCALE=en
|
||||
_APP_WORKER_PER_CORE=4
|
||||
_APP_WORKER_PER_CORE=6
|
||||
_APP_CONSOLE_WHITELIST_ROOT=disabled
|
||||
_APP_CONSOLE_WHITELIST_EMAILS=
|
||||
_APP_CONSOLE_WHITELIST_IPS=
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use Utopia\System\System;
|
|||
global $global, $container;
|
||||
|
||||
$payloadSize = 12 * (1024 * 1024); // 12MB - adding slight buffer for headers and other data that might be sent with the payload - update later with valid testing
|
||||
$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 4));
|
||||
$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||
|
||||
$server = new Server('0.0.0.0', '80', [
|
||||
'open_http2_protocol' => true,
|
||||
|
|
@ -34,13 +34,6 @@ $server = new Server('0.0.0.0', '80', [
|
|||
'http_compression_level' => 6,
|
||||
'package_max_length' => $payloadSize,
|
||||
'buffer_output_size' => $payloadSize,
|
||||
|
||||
// TCP Keep-Alive check
|
||||
'open_tcp_keepalive' => true,
|
||||
'tcp_keepidle' => 4,
|
||||
'tcp_keepinterval' => 1,
|
||||
'tcp_keepcount' => 5,
|
||||
|
||||
// Server
|
||||
// 'log_level' => 0,
|
||||
'dispatch_mode' => 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue