Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

rationalize repair type min/max metrics#31805

Merged
jbiseda merged 1 commit intosolana-labs:masterfrom
jbiseda:repair-metric-slot-range
Jun 13, 2023
Merged

rationalize repair type min/max metrics#31805
jbiseda merged 1 commit intosolana-labs:masterfrom
jbiseda:repair-metric-slot-range

Conversation

@jbiseda
Copy link
Copy Markdown
Contributor

@jbiseda jbiseda commented May 24, 2023

Problem

Repair slot min/max are collected for each repair type, but min/max across repair types are not uniformly reported.

Summary of Changes

  • Add metrics for WindowIndex, HighestWindowIndex, Orphan repair request min/max slot values. Only report non-default values.
  • Retain repair-highest-slot and repair-orphan values for continuity with existing metrics. These data points can eventually be removed.
  • Remove repair-total metric. This metric is the sum of existing shred-count, highest-shred-count, and orphan-count values.

Fixes #

@jbiseda jbiseda force-pushed the repair-metric-slot-range branch from 8c7a3e6 to 22a3c92 Compare May 24, 2023 21:32
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2023

Codecov Report

Merging #31805 (12641b6) into master (c10d3d1) will increase coverage by 0.0%.
The diff coverage is 25.0%.

@@           Coverage Diff           @@
##           master   #31805   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         765      765           
  Lines      208646   208655    +9     
=======================================
+ Hits       170982   171036   +54     
+ Misses      37664    37619   -45     

@jbiseda jbiseda force-pushed the repair-metric-slot-range branch from 22a3c92 to f10a749 Compare May 31, 2023 01:15
@jbiseda jbiseda changed the title report repair slot range rationalize repair type min/max metrics May 31, 2023
@jbiseda jbiseda force-pushed the repair-metric-slot-range branch 3 times, most recently from dc55565 to 49bdc4e Compare May 31, 2023 23:02
@jbiseda jbiseda marked this pull request as ready for review June 1, 2023 01:16
@jbiseda jbiseda force-pushed the repair-metric-slot-range branch from 49bdc4e to 2b3d164 Compare June 1, 2023 01:17
@jbiseda jbiseda requested review from steviez and yhchiang-sol June 1, 2023 01:17
Comment thread core/src/repair_service.rs
Comment thread core/src/repair_service.rs
@jbiseda jbiseda force-pushed the repair-metric-slot-range branch from 2b3d164 to 7b9883b Compare June 1, 2023 17:29
Comment thread metrics/src/datapoint.rs
@jbiseda jbiseda force-pushed the repair-metric-slot-range branch 2 times, most recently from 69d61d8 to 4f932b8 Compare June 10, 2023 00:51
@jbiseda jbiseda requested a review from behzadnouri June 10, 2023 03:02
steviez
steviez previously approved these changes Jun 12, 2023
Copy link
Copy Markdown
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

I'm good with this as-is. However, let's make sure to get @behzadnouri's sign off / reach consensus in the issue he raised about whether to drop or keep repair-total.

Comment thread core/src/repair_service.rs
yhchiang-sol
yhchiang-sol previously approved these changes Jun 12, 2023
Copy link
Copy Markdown
Contributor

@yhchiang-sol yhchiang-sol left a comment

Choose a reason for hiding this comment

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

LGTM. Be sure to get @behzadnouri's approval before merging the PR.

@jbiseda jbiseda dismissed stale reviews from yhchiang-sol and steviez via 12641b6 June 13, 2023 00:09
@jbiseda jbiseda force-pushed the repair-metric-slot-range branch from 4f932b8 to 12641b6 Compare June 13, 2023 00:09
@jbiseda jbiseda merged commit 667b205 into solana-labs:master Jun 13, 2023
jeffwashington pushed a commit to HaoranYi/solana that referenced this pull request Jun 13, 2023
wen-coding pushed a commit to wen-coding/solana that referenced this pull request Aug 15, 2023
wen-coding pushed a commit to wen-coding/solana that referenced this pull request Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants