From 70ebed1ac6bbb09b33b335f2c06ac73a25567337 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 28 Oct 2016 07:33:15 +0200 Subject: Try to limit the pool size and the number of connections that can be created after the pool reached its maximum size. --- src/bootstrap.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bootstrap.py') diff --git a/src/bootstrap.py b/src/bootstrap.py index 912c35ae..ea3b5d05 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -34,6 +34,8 @@ else: application.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True application.config['SQLALCHEMY_DATABASE_URI'] \ = conf.SQLALCHEMY_DATABASE_URI + application.config['SQLALCHEMY_POOL_SIZE'] = 20 + application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 scheme, domain, _, _, _ = urlsplit(conf.PLATFORM_URL) application.config['SERVER_NAME'] = domain -- cgit