Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top