gpt4 book ai didi

redis - HA redis解决方案,集群或Sentinel

转载 作者:可可西里 更新时间:2023-11-01 11:14:41 25 4
gpt4 key购买 nike

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

最佳答案

嗯,对于HA redis 解决方案,这取决于您要配置的节点数。

根据关于 Redis-cluster 的官方 Redis 文档和 Redis-sentinel两者都提供 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).

更多信息请引用官方文档:)

干杯

关于redis - HA redis解决方案,集群或Sentinel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54763844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com