add-node flowchart

must covery step

redis-trib.rb add-node 10.10.34.14:6386 10.10.34.14:6381 (just cli send meet command)
forward is the need add node
next is the exist node

master

1 redis-trib.rb reshard 10.10.34.14:6386
2 How many slots do you want to move (from 1 to 16384)? 500
3 What is the receiving node ID? f51e26b5d5ff74f85341f06f28f125b7254e61bf
new myid

reshard 比较好玩。。先ruby自己分配相应个数个 newmaster 然后发送相应的更新消息
如果不是master自己节点的信息 直接
cluster setslot 5466 node 73bad55ce8919c8a9c48c9280d0013669fe211f5

否则要先迁移slots
cluster setslot 0 migrating 73bad55ce8919c8a9c48c9280d0013669fe211f5
……………….
cluster getkeysinslot 0 10 (这一步应该是把相应的slot的值迁移到相应的数据之中)
……………….
cluster setslot 0 node 73bad55ce8919c8a9c48c9280d0013669fe211f5
进入这种模式的消息发送

slave

进入redis-cli
cluster replicate 2b9ebcbd627ff0fd7a7bbcc5332fb09e72788835

summary

有点锤子。。。输入太复杂啦

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值