Skip to content

How to get notified when a node is down #1174

Closed Answered by drmingdrmer
SteveLauC asked this question in Q&A
Discussion options

You must be logged in to vote

I guess this won't work in the case where no changes will be made to the state machine after a follower node becomes offline as the applied log indexes will remain the same, thus the difference will not change.

You're correct. To better assess the connectivity status of a follower node, it would be beneficial to add a metric that tracks the timestamp of the last acknowledged heartbeat from each follower. This additional information would provide a more accurate and timely indication of the follower's connectivity status. Here's how we could refine this idea:

  1. Add a new field to the RaftMetrics struct specifically for follower heartbeat information:
pub struct RaftMetrics<C: RaftTypeConfig

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@SteveLauC
Comment options

SteveLauC Jul 18, 2024
Collaborator Author

@drmingdrmer
Comment options

Answer selected by SteveLauC
@SteveLauC
Comment options

SteveLauC Jul 18, 2024
Collaborator Author

@drmingdrmer
Comment options

@SteveLauC
Comment options

SteveLauC Jul 18, 2024
Collaborator Author

Comment options

SteveLauC
Jul 23, 2024
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants