mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
Merge branch 'hotfix/1.1.3' into develop - Bug Fix : Increased the connection pool size and concurrency for Sidekiq
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user