From 2607adddb49e4ef146c9ea0b55bed7fdb30f9a3c Mon Sep 17 00:00:00 2001 From: huanglonghui Date: Fri, 12 Jan 2024 16:30:21 +0800 Subject: [PATCH] chore: modify worker num config --- dev.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev.php b/dev.php index 349868a..a37c5a6 100644 --- a/dev.php +++ b/dev.php @@ -8,7 +8,7 @@ 'SOCK_TYPE' => SWOOLE_TCP, 'RUN_MODEL' => SWOOLE_PROCESS, 'SETTING' => [ - 'worker_num' => 8, + 'worker_num' => swoole_cpu_num(), 'reload_async' => true, 'max_wait_time'=>3, 'document_root' => EASYSWOOLE_ROOT . '/Static',