Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tp8.0 配置了 max_request 和 task_max_request 达到请求时 进程没有重启 #391

Open
ruansuccess opened this issue Jan 9, 2025 · 0 comments

Comments

@ruansuccess
Copy link

我的配置是 'http' => [
'enable' => true,
'host' => '0.0.0.0',
'port' => 8081,
'worker_num' => swoole_cpu_num(),
'options' => [
'pid_file' => runtime_path() . 'swoole.pid', //服务启动以后进程 ID 存放文件
'log_file' => runtime_path() . 'swoole.log', //Swoole 的日志文件
'task_worker_num' => 2, // 启动 2 个 Task 进程
'max_request' => 10, // 每个 Worker 处理 10 个请求后重启
'task_max_request' => 10, // 每个 Task 处理 10 个任务后重启
],
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant