【发布时间】:2013-03-23 10:17:09
【问题描述】:
我一直在尝试使用 sidekiq-limit_fetch gem 限制每个队列的工作人员数量,Sidekiq 似乎“看到”了日志中的强制限制,但是当我观察工作人员时,这些限制被忽略了。
这是 Sidekiq 看到限制的日志部分:
2013-04-02T05:47:19Z 748 TID-11ilcw DEBUG: {:queues=>
["recommendvariations",
"recommendvariations",
"recommendvariations",
"recommendphenotypes",
"recommendphenotypes",
"recommendphenotypes",
"preparse",
"preparse",
"preparse",
"parse",
"parse",
"parse",
"zipgenotyping",
"zipgenotyping",
"zipfulldata",
"deletegenotype",
"fitbit",
"frequency",
"genomegov",
"mailnewgenotype",
"mendeley_details",
"mendeley",
"pgp",
"plos_details",
"plos",
"snpedia",
"fixphenotypes"],
:concurrency=>5,
:require=>".",
:environment=>"production",
:timeout=>8,
:profile=>false,
:verbose=>true,
:pidfile=>"/tmp/sidekiq.pid",
:logfile=>"./log/sidekiq.log",
:limits=>
{"recommendvariations"=>1,
"recommendphenotypes"=>1,
"preparse"=>2,
"parse"=>2,
"zipgenotyping"=>1,
"zipfulldata"=>1,
"fitbit"=>3,
"frequency"=>10,
"genomegov"=>1,
"mailnewgenotype"=>1,
"mendeley_details"=>1,
"mendeley"=>1,
"pgp"=>1,
"plos_details"=>1,
"plos"=>1,
"snpedia"=>1,
"fixphenotypes"=>1},
:strict=>false,
:config_file=>"config/sidekiq.yml",
:tag=>"snpr"}
和here's the sidekiq.yml。从 sidekiq 的网络界面来看,这些限制被忽略了——现在,我在“recommendvariations”队列中有 2 个工作人员,但应该是 1 个。
我从 bundle exec sidekiq -e production -C config/sidekiq.yml 开始工作。
有没有人遇到过这种情况?
【问题讨论】:
标签: ruby-on-rails ruby sidekiq