From d778226bd7713788aa934fb01c42fc49f8390ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 28 Jan 2025 12:13:57 +0100 Subject: [PATCH] chore: adjust connection pooling --- govtool/backend/app/Main.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/govtool/backend/app/Main.hs b/govtool/backend/app/Main.hs index e6fe22bb6..6311288f0 100644 --- a/govtool/backend/app/Main.hs +++ b/govtool/backend/app/Main.hs @@ -70,9 +70,9 @@ createOptimizedConnectionPool :: BS.ByteString -> IO (Pool Connection) createOptimizedConnectionPool connectionString = createPool (connectPostgreSQL connectionString) -- Connection creation function close -- Connection destruction function - 16 -- Number of stripes (sub-pools) - 30 -- Idle timeout (seconds) - 50 -- Maximum number of connections per stripe + 1 -- Idle timeout (seconds) + 2 -- Number of stripes (sub-pools) + 60 -- Maximum number of connections per stripe proxyAPI :: Proxy (VVAApi :<|> SwaggerAPI) proxyAPI = Proxy