我已经有一个可用的 Redis sentinel 设置(master、slave 和 3 个 sentinel)。我打算建立一个有 3 个主服务器和 3 个从服务器的 redis 集群。
当我有 redis 集群时,我可以去掉 sentinel 设置吗?如果不是,设置会是什么样子?
最佳答案
在使用 Redis 集群时,您不需要需要 Sentinel。
如果任何主实例发生任何问题,Redis 集群会执行自动故障转移。
来自 Redis Essentials书:
Redis Sentinel and Redis Cluster share a lot of characteristics, but each has its own goal. Sentinel's goal is to provide reliable automatic failover in a master/slave topology without sharding data. Cluster's goal is to distribute data across different Redis instances and perform automatic failover if any problem happens to any master instance.
关于Redis - 有集群时我需要有哨兵吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33532101/