Merge branch 'hotfix/1.1.3' Bugfix : Increased sidekiq connection pool and concurrency
This commit is contained in:
commit
1e955455f0
2 changed files with 7 additions and 7 deletions
|
@ -1,12 +1,12 @@
|
|||
sidekiq_redis_config = {
|
||||
url: ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379'),
|
||||
password: ENV.fetch('REDIS_PASSWORD', nil)
|
||||
url: ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379'),
|
||||
password: ENV.fetch('REDIS_PASSWORD', nil)
|
||||
}
|
||||
|
||||
Sidekiq.configure_client do |config|
|
||||
config.redis = sidekiq_redis_config.merge(size: 5)
|
||||
config.redis = sidekiq_redis_config.merge(size: 15)
|
||||
end
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
config.redis = sidekiq_redis_config.merge(size: 10)
|
||||
config.redis = sidekiq_redis_config.merge(size: 15)
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# pick it up automatically.
|
||||
---
|
||||
:verbose: false
|
||||
:concurrency: 3
|
||||
:concurrency: 5
|
||||
:timeout: 25
|
||||
|
||||
# Sidekiq will run this file through ERB when reading it so you can
|
||||
|
@ -18,6 +18,6 @@
|
|||
|
||||
# you can override concurrency based on environment
|
||||
production:
|
||||
:concurrency: 10
|
||||
:concurrency: 20
|
||||
staging:
|
||||
:concurrency: 5
|
||||
:concurrency: 10
|
||||
|
|
Loading…
Reference in a new issue