Browse Source

Adjust down the number of Sidekiq threads to 5 (default of 25 is way too high)

theme_witches
Eugen Rochko 7 years ago
parent
commit
36f3da3cde
  1. 2
      config/database.yml
  2. 2
      config/initializers/sidekiq.rb
  3. 2
      config/sidekiq.yml

2
config/database.yml

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
default: &default
adapter: postgresql
pool: 25
pool: 5
timeout: 5000
encoding: unicode

2
config/initializers/sidekiq.rb

@ -7,5 +7,5 @@ Sidekiq.configure_server do |config| @@ -7,5 +7,5 @@ Sidekiq.configure_server do |config|
end
Sidekiq.configure_client do |config|
config.redis = ConnectionPool.new(size: 25, &redis_conn)
config.redis = ConnectionPool.new(size: 5, &redis_conn)
end

2
config/sidekiq.yml

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
---
:concurrency: 5
Loading…
Cancel
Save