-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[consensus] Fix BATCH_NUM_PER_BLOCK histogram buckets #19473
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,7 +166,7 @@ pub static BATCH_NUM_PER_BLOCK: Lazy<HistogramVec> = Lazy::new(|| { | |
| "quorum_store_batch_num_per_block", | ||
| "Histogram for the number of batches per (committed) blocks.", | ||
| &["type"], | ||
| TRANSACTION_COUNT_BUCKETS.clone(), | ||
| PROOF_COUNT_BUCKETS.clone(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [INFORMATIONAL] The bucket swap from Note for follow-up: |
||
| ) | ||
| .unwrap() | ||
| }); | ||
|
|
||
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.
Bucket fix is correct.
BATCH_NUM_PER_BLOCKmeasures proof/batch counts per block (observed values ofproof_num,inline_batch_num,opt_batch_num— all small integers, typically < 500).PROOF_COUNT_BUCKETS(max 500) is the right scale;TRANSACTION_COUNT_BUCKETS(exponential to ~25 000+) was semantically mismatched.Two adjacent metrics with the same scale mismatch remain:
PROOF_SIZE_WHEN_PULL(line ~408) andNUM_BATCHES_WITHOUT_PROOF_OF_STORE(line ~380) — both measure proof/batch counts but still useTRANSACTION_COUNT_BUCKETS.