新增通用的虚拟数据模型;新增定时任务多进程;新增多进程阻塞模式的定时器;

This commit is contained in:
augushong
2024-10-04 23:03:18 +08:00
parent ee80d6eee5
commit e53445e41c
6 changed files with 198 additions and 22 deletions

14
config/timer.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
// 配置参考https://doc.ulthon.com/read/augushong/ulthon_admin/timer-mode/zh-cn/2.x.html
$config = [
'mode' => 'normal',
// 目前仅对多进程模式生效暂不支持设置为0不限制
'max_conn_per_addr' => 128, // 每个域名最多维持多少并发连接
'keepalive_timeout' => 86400, // 连接多长时间不通讯就关闭
'connect_timeout' => 86400, // 连接超时时间
'timeout' => 86400, // 请求发出后等待响应的超时时间
];
return $config;