Skip to content

Instantly share code, notes, and snippets.

@maxjustus
Created October 5, 2012 20:47
Show Gist options
  • Save maxjustus/95316d829d24627b6937 to your computer and use it in GitHub Desktop.
Save maxjustus/95316d829d24627b6937 to your computer and use it in GitHub Desktop.
Sidekiq.configure_client do |config|
config.client_middleware do |chain|
chain.add Sidekiq::Middleware::Client::Batch
end
config.redis = ConnectionPool.new(:timeout => 1, :size => 5) do
RedisFailover::Client.new(:zkservers => Rails.config.zk_servers, :db => 1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment