aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-28 07:33:15 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-28 07:33:15 +0200
commit70ebed1ac6bbb09b33b335f2c06ac73a25567337 (patch)
tree4588da8dc13cb6a132aab55656048da108e77e89 /src/bootstrap.py
parentUpdated some glyphicons. (diff)
downloadnewspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.tar.gz
newspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.tar.bz2
newspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.zip
Try to limit the pool size and the number of connections that can be created after the pool reached its maximum size.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py2
1 files changed, 2 insertions, 0 deletions
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
bgstack15