1、迁移
1.1、同步到单节点
redis-shake下载 release-v2.1.2-20220329.tar.gz
#redis cluster 某一个节点 服务器安装redis-shake
tar -xzvf release-v2.1.2-20220329.tar.gz -C /usr/local/redis-shake
单节点 redis数据迁移到集群
考虑单节点redis 版本低
先将单节点 迁移到 集群服务器中单节点6379 最后迁移到集群
集群 6379操作:
#添加配置
slaveof x.x.x.x 6379
masterauth xxxx
#启动redis
redis-server redis6379.conf
#数据同步完后,停止同步
slaveof no one
1.2、同步到集群
修改配置文件/usr/local/redis-shake/bin/redis-shake.conf
source.type = standalone
source.address = x.x.x.x:6379
source.password_raw = 123456
source.rdb.input = /data/redis6379/dump.rdb
target.type = cluster
#所有主节点的ip
target.address = xxx.xx.xxx.xx:6381;xxx.xx.xxx.xx:6381;xxx.xx.xxx.xx:6381
target.password_raw = 123456
cd /usr/local/redis-shake/bin
./redis-shake.linux -conf redis-shake.conf -type=restore
标签:xxx,redis,xx,集群,shake,节点 From: https://www.cnblogs.com/52shaidan/p/17144034.html