outpost/proxyv2: reduce max number of postgres connections (#19211)

This commit is contained in:
Marc 'risson' Schmitt
2026-01-06 19:19:41 +01:00
committed by GitHub
parent 19667e116f
commit 1a4ae2f102
@@ -234,8 +234,8 @@ func NewPostgresStore(log *log.Entry) (*PostgresStore, error) {
}
// Determine connection pool settings
maxIdleConns := 10
maxOpenConns := 100
maxIdleConns := 4
maxOpenConns := 4
var connMaxLifetime time.Duration
if cfg.ConnMaxAge > 0 {
connMaxLifetime = time.Duration(cfg.ConnMaxAge) * time.Second