mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Merge pull request #1693 from alphagov/increase-pool-size
Increase DB connection pool size to 10
This commit is contained in:
@@ -127,6 +127,7 @@ class Config(object):
|
|||||||
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
|
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
|
||||||
SQLALCHEMY_RECORD_QUERIES = True
|
SQLALCHEMY_RECORD_QUERIES = True
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
||||||
|
SQLALCHEMY_POOL_SIZE = int(os.environ.get('SQLALCHEMY_POOL_SIZE', 5))
|
||||||
SQLALCHEMY_POOL_TIMEOUT = 30
|
SQLALCHEMY_POOL_TIMEOUT = 30
|
||||||
SQLALCHEMY_POOL_RECYCLE = 300
|
SQLALCHEMY_POOL_RECYCLE = 300
|
||||||
PAGE_SIZE = 50
|
PAGE_SIZE = 50
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ env:
|
|||||||
CW_APP_NAME: api
|
CW_APP_NAME: api
|
||||||
# required by cf run-task
|
# required by cf run-task
|
||||||
FLASK_APP: application.py
|
FLASK_APP: application.py
|
||||||
|
SQLALCHEMY_POOL_SIZE: 10
|
||||||
|
|
||||||
# Credentials variables
|
# Credentials variables
|
||||||
ADMIN_BASE_URL: null
|
ADMIN_BASE_URL: null
|
||||||
|
|||||||
Reference in New Issue
Block a user