Redis Cluster集群管理工具redis-trib.rb 详解(七) rebalance平衡集群节点slot数量
./src/redis-trib.rb rebalance –use-empty-masters –pipeline 100 –simulate 114.55.116.177:8002
./src/redis-trib.rb rebalance –use-empty-masters –pipeline 100 114.55.116.177:8002
其实我一直在你身边
./src/redis-trib.rb rebalance –use-empty-masters –pipeline 100 –simulate 114.55.116.177:8002
./src/redis-trib.rb rebalance –use-empty-masters –pipeline 100 114.55.116.177:8002
./src/redis-trib.rb add-node 114.55.116.177:8013 114.55.116.177:8001 (新增集群8013master节点)
./src/redis-trib.rb reshard 114.55.116.177:8013(为8013master节点重新分配slot)
./src/redis-trib.rb check 114.55.116.177:8004 (重新check检查集群,8001节点减少1500个slots,8013节点增加1500个slot)
./src/redis-trib.rb add-node 114.55.116.177:8010 114.55.116.177:8001
./src/redis-trib.rb add-node –slave –master-id 4e6ac38201943a070d65dc7c489e334cb7cf9bc6 114.55.116.177:8010 114.55.116.177:8001
命令格式:ruby redis-trib.rb info host:port
./src/redis-trib.rb info 114.55.116.177:8001
./src/redis-trib.rb check 114.55.116.177:8001
#/opt/redis-3.0.6/src/redis-trib.rb create –replicas 2 114.55.116.177:8001 114.55.116.177:8002 114.55.116.177:8003 114.55.116.177:8004 114.55.116.177:8005 114.55.116.177:8006 114.55.116.177:8007 114.55.116.177:8008 114.55.116.177:8009
redis-cli -h 127.0.0.1 -p 6379 -a zzs888
./src/redis-trib.rb help
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install ruby 2.3.1
/usr/local/redis/bin/redis-server /usr/local/redis-cluster/800*/redis.conf
./redis-trib.rb create –replicas 1 10.25.55.34:8001 10.25.55.34:8002
scp -P 22 redis-3.0.6.tar root@140.82.16.8:/opt