Skip to content

Commit

Permalink
Merge pull request #526 from OdyseeTeam/improve-redis-cache
Browse files Browse the repository at this point in the history
Fix idle connection number for replicas
  • Loading branch information
anbsky authored Nov 20, 2024
2 parents 5180922 + f04c3a9 commit 2750028
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 2750028

Please sign in to comment.