mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
pkg/storage/redis: Prevent connection churn (#1603)
This commit is contained in:
parent
a41c37f9e0
commit
85c109114c
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ func New(rawURL, recordType string, opts ...Option) (*DB, error) {
|
|||
}
|
||||
return nil
|
||||
},
|
||||
MaxIdle: 64,
|
||||
IdleTimeout: time.Minute,
|
||||
MaxActive: 128,
|
||||
}
|
||||
metrics.AddRedisMetrics(db.pool.Stats)
|
||||
return db, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue