mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
outpost/proxyv2: reduce max number of postgres connections (#19211)
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user