Skip to content

Commit fbc8ce5

Browse files
committed
Increase db pool size
We're getting timesout errors from requests trying to get db connections. We believe that with Falcon using Ruby fibers, it now needs more than one db connection per thread. Our AWS Aurora instance can handle up-to 5000 connections, and we' currently use less than 100 typically, so we have plenty of headroom to increase the size. Jira-Issue: MAV-5188
1 parent f0b631f commit fbc8ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default: &default
22
adapter: postgresql
33
encoding: unicode
4-
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5).to_i %>
4+
pool: <%= 5 * ENV.fetch("RAILS_MAX_THREADS", 5).to_i %>
55

66
development:
77
<<: *default

0 commit comments

Comments
 (0)