1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Increase the default server max connection pool size, #2634

4.0's fetch requires more connections.  Pro and Enterprise both have features requiring more connections.  This shouldn't matter too much in practice since connection_pool is lazy since 2.0 and will only create those extra connections if they are actually needed.
This commit is contained in:
Mike Perham 2015-10-30 08:43:56 -07:00
parent c65625d00a
commit 9db8fc0ddb

View file

@ -9,7 +9,7 @@ module Sidekiq
def create(options={})
options[:url] ||= determine_redis_provider
size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 2) : 5)
size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 5) : 5)
verify_sizing(size, Sidekiq.options[:concurrency]) if Sidekiq.server?