From a56950110812820519be749756772cfd2cbc4ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Wed, 11 Sep 2024 10:45:02 +0300 Subject: [PATCH] chore(test): set connection lifetimes for postgresql (#8586) # Which Problems Are Solved defaults.yaml only specifies defaults for cockroach. Therefore, options omitted for postgresql are actually set to `0`. This means that the connections timeouts are set to `0` and connections were not reused, resulting in a performance penalty while running the integration tests. # How the Problems Are Solved Set MaxConnLifeTime and MaxConnIdleTime options in postgres # Additional Changes - none # Additional Context - none Co-authored-by: Silvan Co-authored-by: Livio Spring --- internal/integration/config/postgres.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/integration/config/postgres.yaml b/internal/integration/config/postgres.yaml index 9cabb440c0..df1d08d3bc 100644 --- a/internal/integration/config/postgres.yaml +++ b/internal/integration/config/postgres.yaml @@ -7,6 +7,8 @@ Database: Database: zitadel MaxOpenConns: 20 MaxIdleConns: 20 + MaxConnLifetime: 1h + MaxConnIdleTime: 5m User: Username: zitadel SSL: