]> git.ipfire.org Git - ipfire.org.git/commitdiff
database: Update pool parameters
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2023 11:13:41 +0000 (11:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2023 11:13:41 +0000 (11:13 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/database.py

index bf3cf108c8775dc9638cba47792037802f176246..c31ab759e390ef400ca15d9dae5cc45706c5a74f 100644 (file)
@@ -51,14 +51,14 @@ class Connection(object):
                        configure=self.__configure,
 
                        # Set limits for min/max connections in the pool
-                       min_size=4,
-                       max_size=128,
+                       min_size=8,
+                       max_size=512,
 
                        # Give clients up to one minute to retrieve a connection
                        timeout=60,
 
-                       # Close connections after they have been idle for one minute
-                       max_idle=60,
+                       # Close connections after they have been idle for a few seconds
+                       max_idle=5,
                )
 
        def __configure(self, conn):