admin管理员组

文章数量:1023009

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

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

本文标签: Failover in redis sentinel vs clusterStack Overflow