Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in the liveness detection. #116

Closed
wants to merge 1 commit into from
Closed

Conversation

fulmicoton
Copy link
Contributor

  • Updating heartbeat on Digest messages (in addition to process delta)
  • Avoid making up an interval when we have received a single heartbeat.
  • Never marking nodes with less than 2 heartbeat recorded as live.
  • Using additive smoothing to deal with the problem of the inability to assess liveness on the first few samples.

}

/// Appends a new value and updates the statistics.
pub fn append(&mut self, interval: f64) {
if self.index == self.size {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really dislike this kind of code because it is impossible to put a meaning to self.index.

@fulmicoton fulmicoton force-pushed the leveraging-digest branch 2 times, most recently from ce8e1c0 to 97325d9 Compare February 15, 2024 13:02
- Updating heartbeat on Digest messages (in addition to process delta)
- Avoid making up an interval when we have received a single heartbeat.
- Never marking nodes with less than 2 heartbeat recorded as live.
- Using additive smoothing to deal with the problem of the inability to
  assess liveness on the first few samples.
- light refactoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant