Skip to content

Commit d1e7d83

Browse files
aledbfroboquat
authored andcommitted
[registry-facade] Adjust Redis defaults
1 parent 53c9935 commit d1e7d83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/registry-facade/pkg/registry/registry.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ func getRedisClient(cfg *config.RedisCacheConfig) (*redis.Client, error) {
303303

304304
SentinelUsername: cfg.Username,
305305
SentinelPassword: cfg.Password,
306+
307+
MaxRetries: 10,
308+
MinRetryBackoff: time.Millisecond * 100,
309+
MaxRetryBackoff: time.Minute * 1,
310+
ReadTimeout: time.Second * 30,
311+
WriteTimeout: time.Second * 5,
306312
})
307313

308314
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)

0 commit comments

Comments
 (0)