Skip to content

Instantly share code, notes, and snippets.

@moperacz
Created March 10, 2013 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moperacz/5126450 to your computer and use it in GitHub Desktop.
Save moperacz/5126450 to your computer and use it in GitHub Desktop.
Sidekiq.configure_server do |config|
pool = ConnectionPool.new(:size => 10, :timeout => 3) do
zkservers = 'localhost:2181,localhost:2182,localhost:2183'
RedisFailover::Client.new namespace: 'my_service', zkservers: zkservers
end
config.redis = pool
end
# do the same in Sidekiq.configure_client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment