redis cluster所有節點IP修改處理方案

方案一:刪除原Cluster信息,重新生成Cluster 節點信息

1.暫停cluster各個node節點

2.刪除持久化文件和節點信息文件:

[root@centos1 6380]# ls
appendonly.aof  dump.rdb  nodes_6380.conf  redis.conf
[root@centos1 6380]# pwd
/usr/local/cluster/6380
[root@centos1 6380]# rm -f appendonly.aof dump.rdb nodes_6380.conf 

不刪除aof rdb文件會在接下來重新創建節點過程中出現原節點存在數據(Not Empty)異常

3.利用redis-trib.rb 初始化集羣信息

redis-trib.rb create --replicas 1 10.11.239.131:6379 10.11.239.131:6380 10.11.234.246:6379 10.11.234.246:6380 10.11.238.50:6379 10.11.238.50:6380

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章