redis集群替换服务器

1 新建2个单机节点 
./redis-server ../conf/redis.6391.conf 

2 加入集群 
redis-trib.rb add-node 192.168.1.165:6391 192.168.1.165:6389 
redis-trib.rb add-node 192.168.1.165:6392 192.168.1.165:6390 

3 成为主节点的slave 
cluster replicate 0cd3b7de515b18330c3a06dbd21dfc05c6000ae1 
cluster replicate 79017eb70361cb9bc213f6c2accb5bfc74aebda6 

4 剔除替换slave 
redis-trib.rb del-node 192.168.1.165:6389 'cc43c3effe85d9a9e4b0291ff4c9757cf93873f8' 
redis-trib.rb del-node 192.168.1.165:6390 'e19f3bf5bf976bef55a93a335baa327d0b0be0fc' 

你可能感兴趣的:(NoSQL)