有什么好的redis集群方案?
大家讲道理
大家讲道理 2017-04-21 10:57:38
0
2
551

有没有一种方案,可以做sharding,同时也可以做主备,主机挂了,slave能自动顶上。有没有这样的方案呢?现在在使用redis集群的公司,一般是怎么做的呢?谢谢

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (2)
巴扎黑

Redis’ cluster solution will not be available until version 3.0, so currently there is no cluster solution for redis itself.

If you need to use multiple redis instances, you can use a load balancing tool such as HaProxy to point all connection addresses to the proxy, and the proxy will allocate response requests according to rules.

In addition, redis has a development version of the service monitoring component, sentinel.

    刘奇

    A problem with the redis cluster solution is that it uses a lot of memory

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!