-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[consensus] enable round timeout message #14914
Conversation
⏱️ 7h 35m total CI duration on this PR
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ba1dc89
to
04a1dc8
Compare
fcbc77a
to
f03ddb0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
consensus/src/round_manager.rs
Outdated
counters::TIMEOUT_ROUNDS_COUNT.inc(); | ||
counters::ROUND_TIMEOUT_REASON | ||
.with_label_values(&[&reason.to_string(), &is_valid_proposer.to_string()]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this useful? this is previous round timeout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is the reason as aggregated by the node. Also, the boolean second label is to see what the next leader thinks the reason is vs others. Ideally, I want everyone to align on the reason, but let's see how varying it is.
consensus/src/round_manager.rs
Outdated
for idx in missing_authors.iter_ones() { | ||
if let Some(author) = ordered_peers.get(idx) { | ||
counters::ROUND_TIMEOUT_REASON_MISSING_AUTHORS | ||
.with_label_values(&[author.short_str().as_str()]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is aggregated missing authors? do we want to monitor the raw metrics of individual missing authors? we should be able to aggregate on grafana easily?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can collect raw as well, but we will need to monitor this aggregation anyhow to be precise. This aggregation looks at a specific quorum, not possible with grafana. I also wanted to make sure it's recorded by the leader so we don't explode cardinality.
This comment has been minimized.
This comment has been minimized.
8e58924
to
dd21d74
Compare
consensus/src/round_manager.rs
Outdated
@@ -354,14 +355,34 @@ impl RoundManager { | |||
&mut self, | |||
new_round_event: NewRoundEvent, | |||
) -> anyhow::Result<()> { | |||
let is_valid_proposer = self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this probably should be "is_current_proposer"
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dd21d74
to
eff64df
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
eff64df
to
17f1c72
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
17f1c72
to
453ee9f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
Description