about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-25 14:20:31 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-25 14:20:31 +0100
commit36f3da3cde2bc2148e156a5dd09d732a06b44ddd (patch)
treef513a3dcca4750a9a89d252dd9c71a091417d06e
parente24bfbde1acbef73cd3c58753a572da2bcb59200 (diff)
Adjust down the number of Sidekiq threads to 5 (default of 25 is way too high)
-rw-r--r--config/database.yml2
-rw-r--r--config/initializers/sidekiq.rb2
-rw-r--r--config/sidekiq.yml2
3 files changed, 4 insertions, 2 deletions
diff --git a/config/database.yml b/config/database.yml
index de67804d2..259244e6f 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 83958d700..d9eed4a9d 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 000000000..ee32b6317
--- /dev/null
+++ b/config/sidekiq.yml
@@ -0,0 +1,2 @@
+---
+:concurrency: 5