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
有点锤子。。。输入太复杂啦