Add puma preloading, decrease DB pool size to size of threads per worker

This commit is contained in:
Eugen Rochko 2016-11-02 16:38:54 +01:00
parent 53fb7b1aa8
commit e7723ab662
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
default: &default
adapter: postgresql
pool: 17
pool: <%= ENV["DB_POOL"] || ENV['RAILS_MAX_THREADS'] || 5 %>
timeout: 5000
encoding: unicode