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

V2.3.0 #2

Merged
merged 6 commits into from
Sep 25, 2019
Merged

V2.3.0 #2

merged 6 commits into from
Sep 25, 2019

Conversation

yeoman-chen
Copy link
Contributor

  1. 增加动态进程管理功能,根据入队列长度动态调节脚本数量,实现快速消费。
  2. 修复拉起时间单位为毫秒,usleep单位是微妙估需要转换为毫秒。
  3. 增加redis操作库的配置。

config.php Outdated
'binArgs' => ['/mnt/hgfs/www/saletool/think', 'testAmqp', '0'],
'workNum' => 1, // 外部程序进程数(固定)
'dynamicWorkNum' => 2, // 外部程序动态进程数,总进程数=固定+动态
'queueNumCacheKey' => 'test_mq_queue', // 控制动态进程数队列长度缓存key,注意缓存数据为["total" => 10000,"update_time" => 15812345678]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是不是要改成可选项,填了queueNumCacheKey队列key才需要设置动态dynamicWorkNum,有的项目不需要跟进队列长度来动态变化进程数?

@kcloze kcloze merged commit 3a882e6 into kcloze:master Sep 25, 2019
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

Successfully merging this pull request may close these issues.

2 participants