Searched the official documents of the Redis cluster and found no way to restart and shutdown the cluster. Why not, guess Redis cluster at least three nodes to run, three at the same time hanging off the possibility of relatively small, as long as not hung up at the same time, hung up after the machine to join the cluster, the cluster can be a good operation, in case of hanging off, data and no backup, there will be big trouble.
The nodes in the Redis cluster cluster are basically peers, without management nodes. If you want all nodes to shut down, you can only shut down the process. # pkill-9 Redis
All the clusters are closed and then restarted, and the following error is reported
# redis-trib.rb Create--replicas 1 xxx.xxx.xxx.xxx:6379 etc
will report the following error,
[ERR] Node 192.168.10.219:6379 is not empty. Either the node already knows other nodes (check with CLUSTER nodes) or contains some key in database 0.
The first time the cluster started,/etc/redis only redis.conf, so I would like to remove all other files except redis.conf, in the boot must be OK, but the cluster is data, so keep the configuration file and data files.
# Cd/etc/redis
# rm-f *.aof nodes-63*
# ll//retention of configuration files and data files
Total Dosage 204
-rw-r--r--1 root 18 May 7 11:21 Dump-6379.rdb
-rw-r--r--1 root 18 May 7 11:21 Dump-6380.rdb
-rw-r--r--1 root 18 May 7 11:21 Dump-6381.rdb
-rw-r--r--1 root 41412 April 23:30 redis-6379.conf
-rw-r--r--1 root 41412 April 23:39 redis-6380.conf
-rw-r--r--1 root 41412 April 23:39 redis-6381.conf
This can be started, but the original data is still lost, do not know is their own ideas, or Redis cluster did not consider, all nodes will be hung out of the situation.