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

[Narwhal] Record number of parents and leader support in proposed headers #7730

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

mwtian
Copy link
Member

@mwtian mwtian commented Jan 26, 2023

This could help with investigating differences between networks.

@mwtian mwtian requested review from akichidis and asonnino January 26, 2023 18:51
@vercel
Copy link

vercel bot commented Jan 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Jan 26, 2023 at 6:51PM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Jan 26, 2023 at 6:51PM (UTC)
frenemies ⬜️ Ignored (Inspect) Jan 26, 2023 at 6:51PM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Jan 26, 2023 at 6:51PM (UTC)

@mwtian mwtian enabled auto-merge (squash) January 26, 2023 18:51
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,
Copy link
Contributor

@akichidis akichidis Jan 26, 2023

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.

Copy link
Member Author

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"
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good.

@mwtian mwtian merged commit 5ec5444 into MystenLabs:main Jan 26, 2023
@mwtian mwtian deleted the proposer-metric branch January 26, 2023 19:12
@mwtian
Copy link
Member Author

mwtian commented Jan 26, 2023

Let me update this.

mwtian added a commit that referenced this pull request Jan 26, 2023
mwtian added a commit that referenced this pull request Jan 26, 2023
…ders (#7730)

This could help with investigating differences between networks.
mwtian added a commit that referenced this pull request Jan 26, 2023
williampsmith pushed a commit that referenced this pull request Feb 3, 2023
…ders (#7730)

This could help with investigating differences between networks.
williampsmith pushed a commit that referenced this pull request Feb 3, 2023
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.

2 participants