Hardika Desai
Hardika Desai

Reputation: 93

How to manager Multiple sidekiq process with different queues not for same queues

I need to provide the priority job queues based on processes.. divide queues based on process like this way

Process 1 is occupied only for "update_data" queues Process 2 is occupied only for "import_data "

is there any possibility to add it inside the sidekiq.yml file and one more thing i'm using sidekiqswarm

#sidekiq.yml

:concurrency: 10
 
:queues:
  - [mailers, 1]
  - [automation_rules, 1]
  - [automation_mailers, 1]
:limits:
   mailers: 2
   automation_rules: 2
   automation_mailers: 2

Sidekiq.service

Environment="SIDEKIQ_COUNT=2"
Environment="SIDEKIQ_PRELOAD=''"
ExecStart=/bin/bash /home/user/.rbenv/bin/rbenv exec bundle exec sidekiqswarm -e production -C config/sidekiq.yml

Please give me solution for this changes

Upvotes: 0

Views: 52

Answers (1)

coreyward
coreyward

Reputation: 80128

The docs explain how to run a process dedicated to a specific queue, such as if you need one for critical tasks. That's probably your best bet. I'm not familiar with a way to configure this in the sidekiq.yml configuration file, though.

sidekiq -q critical

As for configuration with the Enterprise Sidekiq Swarm offering, you may be better off reaching out to Sidekiq for support since you've paid for it already.

Upvotes: 0

Related Questions