Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does sidekiq use multiple cpu cores and can it be run on multiple machines?

Tags:

sidekiq

Does sidekiq take advantage of multiple cpu cores?

Can I run sidekiq on multiple machines with one redis database and have them all proccess the same queue?

like image 870
Dan Avatar asked Oct 17 '25 01:10

Dan


1 Answers

Sidekiq is limited to whatever Ruby can do. If you are running Sidekiq in MRI Ruby, each Sidekiq process is limited to one core. You can utilize all cores by running multiple MRI processes.

If you are running Sidekiq in JRuby, that one process can take advantage of all cores.

All Sidekiq processes can process any queue, regardless of what machine they are running on.

like image 170
davogones Avatar answered Oct 19 '25 13:10

davogones



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!