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

Fold noisy metric into struct of metrics that is reported every 10s #33635

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Oct 10, 2023

Problem

Noisy metric as reported by #33610

Summary of Changes

Move the individual datapoint into a struct of other metrics that are collected + reported every 10s

Fixes #33610

@steviez steviez force-pushed the pubsub_condense_metric branch from 36b5c9b to 1f4ddcc Compare October 10, 2023 19:45
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #33635 (1f4ddcc) into master (982d29c) will increase coverage by 0.0%.
Report is 1 commits behind head on master.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #33635   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         806      806           
  Lines      217499   217503    +4     
=======================================
+ Hits       178019   178031   +12     
+ Misses      39480    39472    -8     

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Sorry for missing this one in review! Lgtm.

Another pubsub metric we might consider quieting is this one. Seems like with a fairly standard set of subscriptions, it will notify every slot.
I think we also report a metric on every subscription added or dropped (in this file), which might be kind of annoying on a busy RPC node, though no one has complained...?

@steviez
Copy link
Contributor Author

steviez commented Oct 10, 2023

Another pubsub metric we might consider quieting is this one. Seems like with a fairly standard set of subscriptions, it will notify every slot.

Oof yeah, I see a good amount of inc_new_counter_info! in there as well. Definitely some cleanup to be done, will save that for a separate PR.

I think we also report a metric on every subscription added or dropped (in this file), which might be kind of annoying on a busy RPC node, though no one has complained...?

Yeah, could be another contender

@steviez steviez merged commit 73a9a14 into solana-labs:master Oct 10, 2023
16 checks passed
@steviez steviez deleted the pubsub_condense_metric branch October 10, 2023 21:35
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.

metrics logging for pubsub_notifications is excessive
2 participants