From 33ca6a209651182b67137d1cee7615a12169eae6 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Mon, 6 Apr 2020 16:03:06 +0200 Subject: [PATCH] Allow changing the connection pool size This allows us to tune for UK. The hypothesis from @kristinalim is: > From what I understand, it can result to Rails processes waiting for each other to complete, while the DB server can take more simultaneous connections. --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index 99ed20078d..20c6760868 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,7 +1,7 @@ defaults: &defaults adapter: postgresql encoding: unicode - pool: 5 + pool: <%= ENV.fetch('OFN_DB_POOL', 5) %> host: <%= ENV.fetch('OFN_DB_HOST', 'localhost') %> username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %> password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>