-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.php
41 lines (41 loc) · 1.33 KB
/
dev.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
return [
'SERVER_NAME' => "EasySwoole",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => 'php',
'PORT' => 9501,
'SERVER_TYPE' => EASYSWOOLE_WEB_SOCKET_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
'SOCK_TYPE' => SWOOLE_TCP,
'RUN_MODEL' => SWOOLE_PROCESS,
'SETTING' => [
'worker_num' => 1,
'reload_async' => true,
'max_wait_time'=>3,
'heartbeat_idle_time' => 600, // 表示一个连接如果600秒内未向服务器发送任何数据,此连接将被强制关闭
'heartbeat_check_interval' => 300, // 表示每60秒遍历一次
],
'TASK'=>[
'workerNum'=>4,
'maxRunningNum'=>128,
'timeout'=>15
]
],
'TEMP_DIR' => "/tmp/temp",
'LOG_DIR' => null,
'MYSQL' => [
'host' => 'mysql',
'port' => '3306',
'user' => 'root',
'timeout' => '5',
'charset' => 'utf8mb4',
'password' => '123456',
'database' => 'easyswoole',
'POOL_MAX_NUM' => '20',
'POOL_TIME_OUT' => '0.1',
],
'REDIS' => [
'host' => 'redis',
'port' => '6379',
'auth' => '',
]
];