mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
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
|
||||
PORT=$((PORT+1))
|
||||
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
|
||||
exit 0
|
||||
fi
|
||||
@ -95,20 +95,25 @@ fi
|
||||
|
||||
if [ "$1" == "clean" ]
|
||||
then
|
||||
echo "Cleaning *.log"
|
||||
rm -rf *.log
|
||||
rm -rf appendonly*.aof
|
||||
rm -rf dump*.rdb
|
||||
rm -rf nodes*.conf
|
||||
echo "Cleaning appendonlydir-*"
|
||||
rm -rf appendonlydir-*
|
||||
echo "Cleaning dump-*.rdb"
|
||||
rm -rf dump-*.rdb
|
||||
echo "Cleaning nodes-*.conf"
|
||||
rm -rf nodes-*.conf
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "clean-logs" ]
|
||||
then
|
||||
echo "Cleaning *.log"
|
||||
rm -rf *.log
|
||||
exit 0
|
||||
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 "create [-f] -- Create a cluster using redis-cli --cluster create."
|
||||
echo "stop -- Stop Redis Cluster instances."
|
||||
|
Loading…
Reference in New Issue
Block a user