diff options
author | antirez <antirez@gmail.com> | 2015-01-29 13:21:42 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-01-29 13:21:42 +0100 |
commit | d59ad97d76eeb7cf39809e598bb3a34c57c81978 (patch) | |
tree | 3ec11656e3433b443dd38ec39489688bb9b8bd9b | |
parent | 69583be1812027a1877d14639bdaf76675549989 (diff) | |
download | redis-d59ad97d76eeb7cf39809e598bb3a34c57c81978.tar.gz |
create-cluster script: sane default timeout.
-rwxr-xr-x | utils/create-cluster/create-cluster | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/create-cluster/create-cluster b/utils/create-cluster/create-cluster index 80161587e..76f61091d 100755 --- a/utils/create-cluster/create-cluster +++ b/utils/create-cluster/create-cluster @@ -2,13 +2,14 @@ PORT=30000 ENDPORT=30006 +TIMEOUT=15000 if [ "$1" == "start" ] then while [ $((PORT < ENDPORT)) != "0" ]; do PORT=$((PORT+1)) echo "Starting $PORT" - ../../src/redis-server --port $PORT --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout 5 --appendonly yes --appendfilename appendonly-${PORT}.aof --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes + ../../src/redis-server --port $PORT --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --appendonly yes --appendfilename appendonly-${PORT}.aof --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes done exit 0 fi |