-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Add metric measuring number of successfully inserted push messages #20275
Conversation
gossip/src/cluster_info_metrics.rs
Outdated
@@ -109,6 +109,7 @@ pub(crate) struct GossipStats { | |||
pub(crate) new_push_requests2: Counter, | |||
pub(crate) new_push_requests: Counter, | |||
pub(crate) new_push_requests_num: Counter, | |||
pub(crate) process_push_success: Counter, |
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.
can we plz keep this list sorted?
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.
Updated
gossip/src/crds_gossip.rs
Outdated
let results = self | ||
.push | ||
.process_push_message(&self.crds, from, values, now); | ||
let success_count = results.len(); |
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.
the inserted ones are the ones which are not error.
results.len()
is the same as values.len()
.
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.
Ick, need to read more carefully. Fixed up, thanks!
Codecov Report
@@ Coverage Diff @@
## master #20275 +/- ##
=======================================
Coverage 82.8% 82.8%
=======================================
Files 487 487
Lines 135612 135624 +12
=======================================
+ Hits 112295 112309 +14
+ Misses 23317 23315 -2 |
…olana-labs#20275) * Add number of successfully inserted push messages
…sages (solana-labs#20275)" This reverts commit 9af1dfe.
Problem
No easy way to tell ratio of new messages coming in from push vs pull to measure how effective push in the network currently is
Summary of Changes
Add a
process_push_success
metric that is a parallel to theprocess_pull_response_success
metricFixes #