Add puma preloading, decrease DB pool size to size of threads per worker
This commit is contained in:
parent
53fb7b1aa8
commit
e7723ab662
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
default: &default
|
||||
adapter: postgresql
|
||||
pool: 17
|
||||
pool: <%= ENV["DB_POOL"] || ENV['RAILS_MAX_THREADS'] || 5 %>
|
||||
timeout: 5000
|
||||
encoding: unicode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue