We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我的后台只启动了一个worker,监听了5个队列。如果消息队列里没有消息的时候,worker会超时。抓包看了下,因为代码里设置了polling的值为30秒,所以每一个队列在监听的时候都要等30秒。一个worker监听的队列过多的时候就会超时。
针对我们这样只有一个worker同时监听多个队列的,polling时长设置为30秒不是特别合理。5个队列要2分钟才能轮一圈。建议可以通过配置修改pollingWaitSeconds。
The text was updated successfully, but these errors were encountered:
不好意思,找到了配置项了,是我没好好看文档。
CMQ_QUEUE_POLLING_WAIT_SECONDS
Sorry, something went wrong.
No branches or pull requests
我的后台只启动了一个worker,监听了5个队列。如果消息队列里没有消息的时候,worker会超时。抓包看了下,因为代码里设置了polling的值为30秒,所以每一个队列在监听的时候都要等30秒。一个worker监听的队列过多的时候就会超时。
针对我们这样只有一个worker同时监听多个队列的,polling时长设置为30秒不是特别合理。5个队列要2分钟才能轮一圈。建议可以通过配置修改pollingWaitSeconds。
The text was updated successfully, but these errors were encountered: