From f04c3a9baaef703f759301c48fb7be460951ddeb Mon Sep 17 00:00:00 2001 From: Andriy Biletsky Date: Wed, 20 Nov 2024 18:52:43 +0700 Subject: [PATCH] Fix idle connection number for replicas --- pkg/sturdycache/sturdycache.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/sturdycache/sturdycache.go b/pkg/sturdycache/sturdycache.go index 8c755ecb..b56133d5 100644 --- a/pkg/sturdycache/sturdycache.go +++ b/pkg/sturdycache/sturdycache.go @@ -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)