Search code examples
sidekiq

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


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?


Solution

  • 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.