最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Failover in redis sentinel vs cluster - Stack Overflow

matteradmin9PV0评论

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

Post a comment

comment list (0)

  1. No comments so far