Commit 0db3b0a0 authored by Yossi Gottlieb's avatar Yossi Gottlieb
Browse files

Merge remote-tracking branch 'upstream/unstable' into tls

parents c469f6ad b8e02f2b
#!/bin/bash #!/bin/bash
# Settings # Settings
CLUSTER_HOST=127.0.0.1
PORT=30000 PORT=30000
TIMEOUT=2000 TIMEOUT=2000
NODES=6 NODES=6
REPLICAS=1 REPLICAS=1
PROTECTED_MODE=yes
# You may want to put the above config parameters into config.sh in order to # You may want to put the above config parameters into config.sh in order to
# override the defaults without modifying this script. # override the defaults without modifying this script.
...@@ -22,7 +24,7 @@ then ...@@ -22,7 +24,7 @@ then
while [ $((PORT < ENDPORT)) != "0" ]; do while [ $((PORT < ENDPORT)) != "0" ]; do
PORT=$((PORT+1)) PORT=$((PORT+1))
echo "Starting $PORT" echo "Starting $PORT"
../../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 ../../src/redis-server --port $PORT --protected-mode $PROTECTED_MODE --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 done
exit 0 exit 0
fi fi
...@@ -32,7 +34,7 @@ then ...@@ -32,7 +34,7 @@ then
HOSTS="" HOSTS=""
while [ $((PORT < ENDPORT)) != "0" ]; do while [ $((PORT < ENDPORT)) != "0" ]; do
PORT=$((PORT+1)) PORT=$((PORT+1))
HOSTS="$HOSTS 127.0.0.1:$PORT" HOSTS="$HOSTS $CLUSTER_HOST:$PORT"
done done
../../src/redis-cli --cluster create $HOSTS --cluster-replicas $REPLICAS ../../src/redis-cli --cluster create $HOSTS --cluster-replicas $REPLICAS
exit 0 exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment