-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
stats for staked/unstaked repair requests #28215
Conversation
if budget_exhausted { | ||
stats.dropped_requests_outbound_bandwidth += 1; | ||
continue; | ||
} |
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 issue I see here is that this is still paying for deserializing packets and looking up pubkeys in epoch_staked_nodes
hashmap even though the outbound budget is exhausted. This seems to me pretty wasteful just for the sake of collecting metrics.
The other thing, as previously mentioned: #27771 (comment)
I still don't see why stake vs unstaked breakdown of load matters?
If we cannot handle staked nodes requests, then why should we allocate any budget to unstaked nodes?
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.
and, if we want to prioritize requests by stake, then again, we don't care about stake vs unstaked breakdown
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.
lgtm
Pull request has been modified.
(cherry picked from commit e3e888c)
solana-labs#28230) stats for staked/unstaked repair requests (solana-labs#28215) (cherry picked from commit e3e888c) Co-authored-by: Jeff Biseda <jbiseda@gmail.com>
(cherry picked from commit e3e888c) # Conflicts: # core/src/serve_repair.rs
Problem
need stats to break down repair requests by staked/unstaked senders
Summary of Changes
minimal changes to track staked/unstaked sender of all requests which pass the load shedding filter.
See also #27708 #27771
Fixes #