greenlight/config/database.yml
Tobias Gall 8c9535b0ec
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>
2021-01-20 15:21:32 -05:00

25 lines
592 B
YAML

default: &default
pool: 9
timeout: 5000
development:
<<: *default
adapter: sqlite3
database: db/development.sqlite3
test:
<<: *default
adapter: sqlite3
database: db/test.sqlite3
# Use sqlite in production by default. Greenlight supports
production:
<<: *default
adapter: <%= ENV['DB_ADAPTER'] || 'sqlite3' %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT' || '5432'] %>
database: <%= ENV['DB_NAME'] || 'db/production/production.sqlite3' %>
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
pool: <%= ENV['DB_POOL_SIZE'] || '9' %>