From 20d5a946f68d78d1cafbc9a93d13955597316f6a Mon Sep 17 00:00:00 2001 From: Richard Chapman Date: Fri, 22 Dec 2017 08:21:53 +0000 Subject: [PATCH] Add back in SQLALCHEMY config changes on staging SQL Alchemy config changes were made to decrease the downtime of the application. The last test only had 1 min of downtime in the upgrade period i.e. 40 mins. Tested without the config changes to double check the change had the desired effect. Adding back in so we can test the changes under load and performance test outside of upgrade. --- app/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/config.py b/app/config.py index 3b70b63f8..36a977110 100644 --- a/app/config.py +++ b/app/config.py @@ -414,6 +414,8 @@ class Staging(Config): API_RATE_LIMIT_ENABLED = True CHECK_PROXY_HEADER = True REDIS_ENABLED = True + SQLALCHEMY_POOL_TIMEOUT = 30 + SQLALCHEMY_POOL_RECYCLE = 300 API_KEY_LIMITS = { KEY_TYPE_TEAM: {