update connTimeout to 30s in cluster

v4
vinllen 5 years ago
parent f2c5a1d13d
commit b40bd294be
  1. 2
      README.md
  2. 2
      src/redis-shake/common/utils.go

@ -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
---

@ -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,

Loading…
Cancel
Save