-
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
distinguish consensus/non consensus in certificate execution latency #11749
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
crates/sui-core/src/authority.rs
Outdated
@@ -189,7 +189,8 @@ pub struct AuthorityMetrics { | |||
batch_size: Histogram, | |||
|
|||
handle_transaction_latency: Histogram, | |||
execute_certificate_latency: Histogram, | |||
execute_certificate_consensus_latency: Histogram, |
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.
Just use a label to differentiate between the two?
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 can do that if you prefer that, just curious any particular reason it is better?
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.
Just in case we need to add more labels for the metric. Also there is currently handle_transaction_latency
so it seems nice to maintain execute_certificate_latency
.
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.
not sure what you mean by handle_transaction_latency
but I will update to use labels
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 wanted to use two metrics because today we have handle_certificate_non_consensus_latency
and handle_certificate_consensus_latency
which are two metrics. But it's not a big deal and I don't have preferences
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, either way is fine.
c68d58e
to
f89ecd3
Compare
Description
as title, and add more points in the buckets.
Test Plan
CI
If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)
Release notes