0
我有以下的sidekiq.yml配置文件,但我不知道如何構建一個具有較低併發性的單獨隊列。我怎樣才能做到這一點?如何爲sidekiq配置指定不同的併發隊列?
---
:concurrency: 25
:pidfile: ./tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log
:queues:
- default
- [high_priority, 2]
- [import_queue, 3]
- [user_queue, 4]
:daemon: true
我想這樣做雖然以下,
---
:concurrency: 25
:pidfile: ./tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log
:queues:
- default
- [high_priority, 2]
- [import_queue, 3]
- [user_queue, 4]
:daemon: true
---
:concurrency: 5
:pidfile: ./tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log
:queues:
- small_queue
:daemon: true
我想配置該設置的原因是爲了避免殺死服務器,我可能會或可能不會從...中獲取信息;) – daveomcd