]> git.ipfire.org Git - pbs.git/commitdiff
database: Limit the maximum number of database connections to 64
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Sep 2023 16:10:10 +0000 (16:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Sep 2023 16:10:10 +0000 (16:10 +0000)
Our servers are configured to only allow up to 100 connections total
which had funny effects here...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/database.py

index 4aab4ff8352dba2312d8d9e74aa02be3d7994cbd..a3332eef5f5dea9ba6303e62cccadb308c6d3a36 100644 (file)
@@ -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,