diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-25 16:10:14 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-25 16:10:14 +0100 |
commit | 5764d52b04b04381d52896737eb2ffdfe1f87cfd (patch) | |
tree | cf8d3b6a1706df893bea320ac590ed0e73afc94f /config | |
parent | bb98ee489d096c438d3e299deb15e47dfe9b5bff (diff) |
Fix Sidekiq pooling issues. Remove API docs from homepage, replace with
a basic home timeline
Diffstat (limited to 'config')
-rw-r--r-- | config/database.yml | 2 | ||||
-rw-r--r-- | config/initializers/sidekiq.rb | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/config/database.yml b/config/database.yml index 6dbea4e04..da88c65a0 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,6 +1,6 @@ default: &default adapter: postgresql - pool: 10 + pool: 15 timeout: 5000 encoding: unicode diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index d9eed4a9d..153173974 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,11 +1,10 @@ -redis_conn = proc { - $redis.dup -} +host = ENV['REDIS_HOST'] || 'localhost' +port = ENV['REDIS_PORT'] || 6379 Sidekiq.configure_server do |config| - config.redis = ConnectionPool.new(size: 5, &redis_conn) + config.redis = { host: host, port: port } end Sidekiq.configure_client do |config| - config.redis = ConnectionPool.new(size: 5, &redis_conn) + config.redis = { host: host, port: port } end |