I am using Sidekiq
to process background jobs into one of our
Rails project. We want to use a different Redis server located at different location to sepearate out ReportDB
with other background processing job.
According to Sidekiq config wiki we can configure like
config/initializers/sidekiq.rb
Sidekiq.configure_server do |config|
config.redis = { :url => 'redis://redis.example.com:7372/12', :namespace => 'mynamespace' }
end
Sidekiq.configure_client do |config|
config.redis = { :url => 'redis://redis.example.com:7372/12', :namespace => 'mynamespace' }
end
But how can I initialise connection to multiple redis server?