create-cluster script: allow additional options.
This commit is contained in:
parent
c57ba6d6b4
commit
a64168dc89
@ -7,6 +7,7 @@ TIMEOUT=2000
|
|||||||
NODES=6
|
NODES=6
|
||||||
REPLICAS=1
|
REPLICAS=1
|
||||||
PROTECTED_MODE=yes
|
PROTECTED_MODE=yes
|
||||||
|
ADDITIONAL_OPTIONS=""
|
||||||
|
|
||||||
# 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.
|
||||||
@ -24,7 +25,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 --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
|
../../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 ${ADDITIONAL_OPTIONS}
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user