有没有一种方案,可以做sharding,同时也可以做主备,主机挂了,slave能自动顶上。有没有这样的方案呢?现在在使用redis集群的公司,一般是怎么做的呢?谢谢
巴扎黑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.
怪我咯2017-04-21 10:59:38
A problem with the redis cluster solution is that it uses a lot of memory