mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
chore(redis): set max active redis connections to 1000 (#63718)
When active client is 0, there is no limit to the amount of active clients which can lead to Redis quickly reaching it's MaxClient (10000 by default) For more context see [this slack thread](https://sourcegraph.slack.com/archives/C05EMJM2SLR/p1720448507809479) ## Test plan CI ## Changelog * redis-pool: set max active clients to 1000 <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
This commit is contained in:
parent
b28879a3e7
commit
767614bc68
@ -81,6 +81,7 @@ func dialRedis(rawEndpoint string) (redis.Conn, error) {
|
||||
var Cache = NewKeyValue(addresses.Cache, &redis.Pool{
|
||||
MaxIdle: 3,
|
||||
IdleTimeout: 240 * time.Second,
|
||||
MaxActive: 1000,
|
||||
})
|
||||
|
||||
// Store is a redis configured for persisting data. Do not abuse this pool,
|
||||
@ -90,4 +91,5 @@ var Cache = NewKeyValue(addresses.Cache, &redis.Pool{
|
||||
var Store = NewKeyValue(addresses.Store, &redis.Pool{
|
||||
MaxIdle: 10,
|
||||
IdleTimeout: 240 * time.Second,
|
||||
MaxActive: 1000,
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user