diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-02 16:38:54 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-02 16:38:54 +0100 |
commit | e7723ab6625d3cd48b44ddbd340854ea960706f6 (patch) | |
tree | 57dcdc4fa9a0b7e66f338382e807a0c96ab1bb60 /config/database.yml | |
parent | 53fb7b1aa84a76d66ef6973208e1c76a100774f3 (diff) |
Add puma preloading, decrease DB pool size to size of threads per worker
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/database.yml b/config/database.yml index e0df97ad2..52c26f599 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,6 +1,6 @@ default: &default adapter: postgresql - pool: 17 + pool: <%= ENV["DB_POOL"] || ENV['RAILS_MAX_THREADS'] || 5 %> timeout: 5000 encoding: unicode |