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

Logs the number of storages kept alive by fastboot #34667

Merged

Conversation

brooksprumo
Copy link
Contributor

Problem

We log the number of storages kept alive, but this is the total number of storages. Many of them are not kept alive only because of fastboot. I often want to know how many storages are uniquely kept alive by fastboot.

Summary of Changes

Add a datapoint for the number of storages kept alive just by fastboot.

@brooksprumo brooksprumo self-assigned this Jan 5, 2024
fastboot_storages = Some(snapshot_storages_for_fastboot);
datapoint_info!(
"fastboot",
("slot", slot, i64),
("num_storages", num_storages, i64),
("num_storages_total", num_storages_total, i64),
("num_storages_kept_alive", num_storages_kept_alive, i64),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also thought about naming this num_storages_unique, but I wasn't confident that would be sufficient clear to others without looking at the code. Let me know if there's a better name.

@brooksprumo brooksprumo added the v1.17 PRs that should be backported to v1.17 label Jan 5, 2024
Copy link
Contributor

mergify bot commented Jan 5, 2024

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

@brooksprumo brooksprumo marked this pull request as ready for review January 5, 2024 19:22
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (b814497) 81.8% compared to head (7b7cafe) 81.8%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34667   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         824      824           
  Lines      222394   222396    +2     
=======================================
+ Hits       181957   181981   +24     
+ Misses      40437    40415   -22     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit e84974c into solana-labs:master Jan 5, 2024
36 checks passed
mergify bot pushed a commit that referenced this pull request Jan 5, 2024
@brooksprumo brooksprumo deleted the fastboot/log-kept-alive branch January 5, 2024 20:08
brooksprumo added a commit that referenced this pull request Jan 5, 2024
…#34667) (#34670)

Logs the number of storages kept alive by fastboot (#34667)

(cherry picked from commit e84974c)

Co-authored-by: Brooks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.17 PRs that should be backported to v1.17
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants