Commit c00839a9 by 周业恒

Update laravels.php

parent a6b3f90a
Pipeline #10617 passed with stages
in 41 seconds
...@@ -57,8 +57,8 @@ return [ ...@@ -57,8 +57,8 @@ return [
'swoole' => [ 'swoole' => [
'daemonize' => env('LARAVELS_DAEMONIZE', false), 'daemonize' => env('LARAVELS_DAEMONIZE', false),
'dispatch_mode' => 2, 'dispatch_mode' => 2,
'reactor_num' => env('LARAVELS_REACTOR_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 4), 'reactor_num' => env('LARAVELS_REACTOR_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 1 : 2),
'worker_num' => env('LARAVELS_WORKER_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 8), 'worker_num' => env('LARAVELS_WORKER_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 1 : 4),
//'task_worker_num' => env('LARAVELS_TASK_WORKER_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 8), //'task_worker_num' => env('LARAVELS_TASK_WORKER_NUM', function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 8),
'task_ipc_mode' => 1, 'task_ipc_mode' => 1,
'task_max_request' => env('LARAVELS_TASK_MAX_REQUEST', 8000), 'task_max_request' => env('LARAVELS_TASK_MAX_REQUEST', 8000),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment