-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[Narwhal] Record number of parents and leader support in proposed headers #7730
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Ignored Deployments
|
pub headers_proposed: IntCounterVec, | ||
// total number of parents in all proposed headers, for calculating average number of parents | ||
// per header. | ||
pub header_parents_total: IntCounter, |
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.
You could alternatively use a Histogram
here that would give you better break down + you can always use it to calculate avg as well. I've found that particularly useful in similar cases.
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.
I thought about it but setting buckets is a bit problematic. But let me update this.
@@ -228,6 +228,24 @@ impl Proposer { | |||
) | |||
.await; | |||
|
|||
let leader_support = if this_round % 2 == 0 { | |||
"even_round" |
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.
Maybe you could also use two labels here, if this is the leader of the round it could be leader
, otherwise even_round
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.
Sounds good.
Let me update this. |
…ders (#7730) This could help with investigating differences between networks.
…ders (#7730) This could help with investigating differences between networks.
Addressing feedback from #7730
This could help with investigating differences between networks.