Skip to content

Commit

Permalink
Merge pull request #1848 from 18F/jjg/fix/configurable-db-pool-size
Browse files Browse the repository at this point in the history
Make DB pool size configurable based on instance role
  • Loading branch information
monfresh authored Dec 7, 2017
2 parents 9cd2007 + 2b8160d commit d04487a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ postgresql: &postgresql
port: 5432

defaults: &defaults
pool: 5
host: localhost
pool: 5
<<: *postgresql
# timeout settings
timeout: 5000
Expand All @@ -30,5 +30,6 @@ production:
username: <%= Figaro.env.database_username! %>
host: <%= Figaro.env.database_host! %>
password: <%= Figaro.env.database_password! %>
pool: <%= (File.exist?('/etc/login.gov/info') && File.read('/etc/login.gov/info/role').chomp == 'worker') ? 26 : 5 %>
sslmode: 'verify-full'
sslrootcert: '/usr/local/share/aws/rds-combined-ca-bundle.pem'

0 comments on commit d04487a

Please sign in to comment.