redis5.0 later set up a cluster

Why ruby ​​redis5.0 before?

Because there is a file redis-trib.rb in redis / src in, is written in Ruby, used to build redis clusters (redis3.0 version only began to support clusters), so I want to build a cluster need to have a redis execution. rb for Ruby runtime environment.
Meanwhile ruby ​​operation are also dependent redis.gem this file.
So before building 5.0 cluster environment need to install ruby, gem download files.

 

redis5.0 later version
cluster structures, without the help of Ruby
https://blog.csdn.net/qq_25215821/article/details/100997778

新版命令:
src/redis-cli --cluster create --cluster-replicas 1
ip1:6379 ip2:6380 ip3:6381
ip1:6382 ip2:6383 ip3:6384

Hang -1 : https://www.liangzl.com/get-article-detail-40471.html

      redis cluster deployment has been stuck in   Waiting for the cluster to join ......  

   The reason: redis redis cluster bus port for the client ports plus 10000, for example, your redis 6379 port for the client communication port, the port cluster bus port 16379

   Resolution: The bus port and the communication port of each cluster redis redis instance
pit -2 :
https://www.jianshu.com/p/7720c922dd80
      ERR] the Node 192.168.10.204:6379 IS Not empty the Either The Node already Knows OTHER. Nodes (the Check with CLUSTER NODES) or the contains some Key in Database 0.
Solution:
  first, turn off redis
  followed if redis data exists before, flushall empty;
  then close the delete redis redis file directory as follows: dump.rdb, Nodes-6379.conf
  restart solve

 

5.0.2 Cluster Setup:

https://blog.csdn.net/qq_25215821/article/details/100997778

Guess you like

Origin www.cnblogs.com/mjbenkyo/p/12078710.html