create-cluster clean now will clean appendonlydir (#10223)
In #9788, now we stores all persistent append-only files in a dedicated directory. The name of the directory is determined by the appenddirname configuration parameter in redis.conf. Now each node have a separate folder. Update create-cluster clean to clean this default directory.
This commit is contained in:
parent
d6e9cde595
commit
c5e3d135ae
@ -28,7 +28,7 @@ then
|
|||||||
while [ $((PORT < ENDPORT)) != "0" ]; do
|
while [ $((PORT < ENDPORT)) != "0" ]; do
|
||||||
PORT=$((PORT+1))
|
PORT=$((PORT+1))
|
||||||
echo "Starting $PORT"
|
echo "Starting $PORT"
|
||||||
$BIN_PATH/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}
|
$BIN_PATH/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 --appenddirname appendonlydir-${PORT} --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes ${ADDITIONAL_OPTIONS}
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -95,20 +95,25 @@ fi
|
|||||||
|
|
||||||
if [ "$1" == "clean" ]
|
if [ "$1" == "clean" ]
|
||||||
then
|
then
|
||||||
|
echo "Cleaning *.log"
|
||||||
rm -rf *.log
|
rm -rf *.log
|
||||||
rm -rf appendonly*.aof
|
echo "Cleaning appendonlydir-*"
|
||||||
rm -rf dump*.rdb
|
rm -rf appendonlydir-*
|
||||||
rm -rf nodes*.conf
|
echo "Cleaning dump-*.rdb"
|
||||||
|
rm -rf dump-*.rdb
|
||||||
|
echo "Cleaning nodes-*.conf"
|
||||||
|
rm -rf nodes-*.conf
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "clean-logs" ]
|
if [ "$1" == "clean-logs" ]
|
||||||
then
|
then
|
||||||
|
echo "Cleaning *.log"
|
||||||
rm -rf *.log
|
rm -rf *.log
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Usage: $0 [start|create|stop|watch|tail|clean|call]"
|
echo "Usage: $0 [start|create|stop|watch|tail|tailall|clean|clean-logs|call]"
|
||||||
echo "start -- Launch Redis Cluster instances."
|
echo "start -- Launch Redis Cluster instances."
|
||||||
echo "create [-f] -- Create a cluster using redis-cli --cluster create."
|
echo "create [-f] -- Create a cluster using redis-cli --cluster create."
|
||||||
echo "stop -- Stop Redis Cluster instances."
|
echo "stop -- Stop Redis Cluster instances."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user