Skip to content

Commit

Permalink
Fix idle connection number for replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Nov 20, 2024
1 parent 2c04acf commit f04c3a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/sturdycache/sturdycache.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func NewReplicatedCache(

for i, addr := range replicaAddrs {
replicaClient := redis.NewClient(&redis.Options{
Addr: addr,
Password: password,
DB: 0,
// PoolSize: 10,
// MinIdleConns: 5,
Addr: addr,
Password: password,
DB: 0,
PoolSize: 200,
MinIdleConns: 10,
})

replicaStore := redis_store.NewRedis(replicaClient)
Expand Down

0 comments on commit f04c3a9

Please sign in to comment.