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

需要允许通过配置设置poll的时长 #5

Closed
chao opened this issue May 22, 2018 · 1 comment
Closed

需要允许通过配置设置poll的时长 #5

chao opened this issue May 22, 2018 · 1 comment

Comments

@chao
Copy link
Contributor

chao commented May 22, 2018

我的后台只启动了一个worker,监听了5个队列。如果消息队列里没有消息的时候,worker会超时。抓包看了下,因为代码里设置了polling的值为30秒,所以每一个队列在监听的时候都要等30秒。一个worker监听的队列过多的时候就会超时。

针对我们这样只有一个worker同时监听多个队列的,polling时长设置为30秒不是特别合理。5个队列要2分钟才能轮一圈。建议可以通过配置修改pollingWaitSeconds。

@chao
Copy link
Contributor Author

chao commented May 22, 2018

不好意思,找到了配置项了,是我没好好看文档。

CMQ_QUEUE_POLLING_WAIT_SECONDS

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