7000.conf 파일
include /redis/redis-5.0.8/redis.conf
bind 0.0.0.0
daemonize yes
protected-mode no
port 7000
pidfile /var/run/redis_7000.pid
logfile /redis_log/redis-7000.log
dir /redis
dbfilename dump_7000.rdb
cluster-config-file node-7000.conf
cluster-enabled yes
cluster-node-timeout 5000
rename-command keys ""
appendonly no
7001.conf
include /redis/redis-5.0.8/redis.conf
bind 0.0.0.0
daemonize yes
protected-mode no
port 7001
pidfile /var/run/redis_7001.pid
logfile /redis_log/redis-7001.log
dir /redis
dbfilename dump_7001.rdb
cluster-config-file node-7001.conf
cluster-enabled yes
cluster-node-timeout 5000
rename-command keys ""
appendonly no
redis-cli --cluster call ${ip}:7000 flushall
redis-cli --cluster call ${ip}:7000 cluster reset
redis-cli --cluster call ${ip}:7001 flushall
redis-cli --cluster call ${ip}:7001 cluster reset
redis-cli --cluster call ${ip}:7000 flushall
redis-cli --cluster call ${ip}:7000 cluster reset
redis-cli --cluster call ${ip}:7001 flushall
redis-cli --cluster call ${ip}:7001 cluster reset
redis-cli --cluster call ${ip}:7000 flushall
redis-cli --cluster call ${ip}:7000 cluster reset
redis-cli --cluster call ${ip}:7001 flushall
redis-cli --cluster call ${ip}:7001 cluster reset
redis-cli -p 7000 cluster failover
redis-cli -p 7000 cluster nodes