From b40bd294be9892fd9319f88b6b7e7ea978b2cb62 Mon Sep 17 00:00:00 2001 From: vinllen Date: Thu, 28 Nov 2019 15:17:39 +0800 Subject: [PATCH] update connTimeout to 30s in cluster --- README.md | 2 +- src/redis-shake/common/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a44c6b2..fb73a8f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Supports `Standalone`, `Cluster`, and some proxies type like `Codis`, `twemproxy For `codis` and `twemproxy`, there maybe some constraints, please checkout this [question](https://github.com/alibaba/RedisShake/wiki/FAQ#q-does-redisshake-supports-codis-and-twemproxy). # Configuration -Redis-shake has several parameters in the configuration(`conf/redis-shake.conf`) that maybe confusing, if this is your first time using, just configure the `source.address` and `target.address` parameters. +Redis-shake has several parameters in the configuration(`conf/redis-shake.conf`) that maybe confusing, if this is your first time using, please visit this [tutorial](https://github.com/alibaba/RedisShake/wiki/tutorial-about-how-to-set-up). # Verification --- diff --git a/src/redis-shake/common/utils.go b/src/redis-shake/common/utils.go index 96af6ef..09ae7ef 100644 --- a/src/redis-shake/common/utils.go +++ b/src/redis-shake/common/utils.go @@ -41,7 +41,7 @@ func OpenRedisConnWithTimeout(target []string, auth_type, passwd string, readTim cluster, err := redigoCluster.NewCluster( &redigoCluster.Options{ StartNodes: target, - ConnTimeout: 10 * time.Second, + ConnTimeout: 30 * time.Second, ReadTimeout: readTimeout, WriteTimeout: writeTimeout, KeepAlive: 16,