search

Home  >  Q&A  >  body text

有什么好的redis集群方案?

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

大家讲道理大家讲道理2842 days ago652

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-21 10:59:38

    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.

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 10:59:38

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

    reply
    0
  • Cancelreply