Search code examples
rubyruby-on-rails-3sidekiq

where did sidekiq process run?


Suppose that I have a Rais app with sidekiq running on IP 10.0.0.1, and just pointed the redis on sidekiq to the IP 10.0.0.2, like this

redisServer = "10.0.0.2"
Sidekiq.configure_server do |config|
  config.redis = { :url => 'redis://' + redisServer + ':6379/0' }
end

What machine will process the background jobs?


Solution

  • If your sidekiq is running on IP 10.0.0.1, then that's where your jobs will be processed.

    redis is just a key-value store. That doesn't process your jobs