HA redis解决方案,集群或Sentinel

时间:2019-02-19 10:19:02

标签: redis

我需要HA Redis解决方案,而不是单个实例。我应该使用集群还是Sentinel?我试图找出它们之间的区别,对此没有正式文件,非常感谢。

1 个答案:

答案 0 :(得分:1)

好吧,对于 HA redis解决方案 ,它取决于您要配置的节点数。

根据Redis-clusterRedis-sentinel的官方Redis文档都提供了 HA解决方案,但是.....

Redis Sentinel provides high availability for Redis. In practical terms this means that using Sentinel you can create a Redis deployment that resists without human intervention to certain kind of failures.

Redis Cluster provides a way to run a Redis installation where data is automatically sharded across multiple Redis nodes.

Redis Cluster also provides some degree of availability during partitions, that is in practical terms the ability to continue the operations when some nodes fail or are not able to communicate. However the cluster stops to operate in the event of larger failures (for example when the majority of masters are unavailable).

有关更多信息,请参阅官方文档:)

欢呼