From: Michael Tremer Date: Fri, 8 Sep 2023 16:10:10 +0000 (+0000) Subject: database: Limit the maximum number of database connections to 64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89bc2aa8ac9978e90fbff2e4216682855d6be776;p=pbs.git database: Limit the maximum number of database connections to 64 Our servers are configured to only allow up to 100 connections total which had funny effects here... Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/database.py b/src/buildservice/database.py index 4aab4ff8..a3332eef 100644 --- a/src/buildservice/database.py +++ b/src/buildservice/database.py @@ -52,7 +52,7 @@ class Connection(object): # Set limits for min/max connections in the pool min_size=8, - max_size=128, + max_size=64, # Give clients up to one minute to retrieve a connection timeout=60,