Comments (6)
生产模式下推荐使用 php think queue:work --daemon
php think queue:listen 主要是测试的时候使用
from think-queue.
@Zhwt 请问解决了吗
from think-queue.
@yikuo123 目前我的解决方法是在框架里面加了一个sleep函数, 解决的不完美, 两次执行队列间会间隔3s, 但是解决了在测试环境下导致大量CPU时间处于等io的问题
from think-queue.
这个只能提升硬件性能,在2核4g的ecs上 两个queue命令可以吃掉70%的cpu,所以只能提升cpu数量或者提升cpu的性能
from think-queue.
@yunwuxin 原来如此,我也一直奇怪为啥我自己写了一个脚本自动拉取 git 占用的 cpu 没这么高呢
from think-queue.
生产模式下推荐使用 php think queue:work --daemon
php think queue:listen 主要是测试的时候使用
3.0 版本php think queue:work 没有这个--daemon参 ,还有什么办法解决 php think queue:listen 拉高cpu的情况嘛 @yunwuxin
from think-queue.
Related Issues (20)
- 使用队列报错 类不存在: swoole.server不存在,macOs Monterry HOT 1
- 有没有可能M1芯片不兼容? HOT 1
- 使用database驱动,却会报redis错误 HOT 1
- docker 环境下 报错类不存在: queue
- 如何设置最大重试次数 HOT 2
- Undefined type 'think\facade\Queue'. HOT 1
- 任务执行失败,修复后,重新执行任务成功,但是无法删除任务
- 队列超时的参数能否加到配置中 HOT 1
- 类不存在: queue
- php think queue:listen HOT 5
- 队列开始执行的时候 任务的重试次数不是1
- Job类中不能使用门面类吗 HOT 1
- 偶尔会报这个错
- 如果执行的Job类不存在,则会无限执行,无法捕获异常 HOT 1
- queue:subscribe 这个要怎么使用?有没有例子?
- supervisor使用 queue:listen 设置timeout不起作用 HOT 7
- 安装时报错: Call to undefined method think\Console::addDefaultCommands() HOT 2
- queue.php 配置有坑
- 使用supervisord 监听php think queue:listen 刚开始一切正常,第二天就无法正常消费,一直在循环消费,重启后正常就正常消费,是什么原因 HOT 8
- 在使用TP5.1的时候如果我引入了workerman,该扩展会导致workerman HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from think-queue.