Replies: 1 comment
-
The sentinelState.current_epoch field is used to track changes in the Sentinel's view of the cluster state. It is updated whenever there is a change in the cluster topology or if a new Sentinel instance is added. This allows the Sentinel to detect if it has fallen behind the current state of the cluster and take appropriate action. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm reading the source code of the sentinel module. The leader election algorithm is analogous to Raft's. Because there is a
leader_epoch
for every master, I can't find the necessity ofsentinelState.current_epoch
. Could anyone explain it for me?Beta Was this translation helpful? Give feedback.
All reactions