1.安装依赖
yum -y install automake libtool autoconf bzip2 unzip
2.安装软件
wget https://github.com/vipshop/redis-migrate-tool/archive/master.zip
unzip master.zip
cd redis-migrate-tool-master
autoreconf -fvi
./configure
make
src/redis-migrate-tool -h
3.从集群到集群,其他方式访问官网查看
vim rmt.conf
[source]
type: redis cluster
servers:
-
127.0.0.1:7000
[target]
type: redis cluster
servers:
-
192.168.1.10:7001
[common]
listen:
0.0.0.0:8888
启动后将监听8888端口,不断进行增量同步
src/redis-migrate-tool -c rmt.conf -o log -d
例子讲解
[source]
#原地址
type: redis cluster #类型,按照官网支持类型填写
servers:
#原地址具体ip
-
127.0.0.1:7000
[target]
#目标地址
type: redis cluster #类型
servers:
#原地址具体ip
-
192.168.1.10:7001
[common]
#程序启动后监听端口
listen:
0.0.0.0:8888
一致性效验
src/redis-migrate-tool -c rmt.conf log -C redis_check
插入数据效验
src/redis-migrate-tool -c mgr.conf log -C redis_testinsert
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。