From 36f3da3cde2bc2148e156a5dd09d732a06b44ddd Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 25 Mar 2016 14:20:31 +0100 Subject: [PATCH] Adjust down the number of Sidekiq threads to 5 (default of 25 is way too high) --- config/database.yml | 2 +- config/initializers/sidekiq.rb | 2 +- config/sidekiq.yml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 config/sidekiq.yml diff --git a/config/database.yml b/config/database.yml index de67804d2a..259244e6f4 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,6 +1,6 @@ default: &default adapter: postgresql - pool: 25 + pool: 5 timeout: 5000 encoding: unicode diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 83958d7000..d9eed4a9d0 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -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 diff --git a/config/sidekiq.yml b/config/sidekiq.yml new file mode 100644 index 0000000000..ee32b63175 --- /dev/null +++ b/config/sidekiq.yml @@ -0,0 +1,2 @@ +--- +:concurrency: 5