最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Failover in redis sentinel vs cluster - Stack Overflow

programmeradmin2浏览0评论

redis sentinel is aimed at providing failover: elect new master node and provide it to a client. Why slave nodes are unable to elect by themselves ?(through consensus protocol)

Clustered redis nodes, in contrast, can elect new master. Why don't sentinel nodes do the election in clustered redis?

redis sentinel is aimed at providing failover: elect new master node and provide it to a client. Why slave nodes are unable to elect by themselves ?(through consensus protocol)

Clustered redis nodes, in contrast, can elect new master. Why don't sentinel nodes do the election in clustered redis?

Share Improve this question asked Nov 18, 2024 at 20:46 voippvoipp 1,4796 gold badges21 silver badges38 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It's just because our manual failover API call eventually is directed to sentinels by internal algorithms. It's quite natural for sentinel to do so as sentinel has responsibilities to monitor nodes.

However, as you wonder, some people try to make changes so that we can deal with it like cluster (ask replicas instead of sentinels). For example, this is an issue in valkey project. https://github/redis/redis/issues/13118

发布评论

评论列表(0)

  1. 暂无评论