forked from External/greenlight
Increase Database pool size (#2445)
The required pool size is calculated by RAILS_MAX_THREADS (default 5) + #Action Cable-Workers (default 4) = 9 The default pool size of 5 is to low for all required connections. Co-authored-by: Jesus Federico <jesus@123it.ca>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
default: &default
|
||||
pool: 5
|
||||
pool: 9
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
@ -21,3 +21,4 @@ production:
|
||||
database: <%= ENV['DB_NAME'] || 'db/production/production.sqlite3' %>
|
||||
username: <%= ENV['DB_USERNAME'] %>
|
||||
password: <%= ENV['DB_PASSWORD'] %>
|
||||
pool: <%= ENV['DB_POOL_SIZE'] || '9' %>
|
||||
|
Reference in New Issue
Block a user