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

Health check slot distance #335

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

bartenbach
Copy link

Problem

Default health check size is arbitrary and inconsistent with delinquency constant.

Summary of Changes

Changes arbitrary health check slot distance to delinquency constant.

@mergify mergify bot requested a review from a team March 20, 2024 06:02
@steviez steviez added the CI Pull Request is ready to enter CI label Mar 20, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Mar 20, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.9%. Comparing base (184ba6c) to head (21e8cc4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #335   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         837      837           
  Lines      226898   226898           
=======================================
+ Hits       185871   185892   +21     
+ Misses      41027    41006   -21     

steviez
steviez previously approved these changes Mar 20, 2024
Copy link

@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.

This looks good to me, thanks for raising / making the PR!

It looks like 128 originates from here:
solana-labs@8e2745c2a24

and 150 from here:
solana-labs@40737e9efa4

@CriesofCarrots - Do you have any reservations about this change? Technically, I think 150 pre-dates 128, but 128 is in a more visible place and a power-of-2 😉 .

Technically, this will make the healthy/not-healthy bound a little stricter for validators, but 128 is still pretty gratuitous. I'm inclined to think that the use of different values was just a minor oversight

@bartenbach
Copy link
Author

As a validator (speaking just for myself), I would prefer the stricter health check that is in line with the definition of delinquency.

It makes sense that you would want to make sure your validator was not delinquent to be considered "healthy". 150 gets you close, but I can't think of any reason for the extra grace in this circumstance.

CriesofCarrots
CriesofCarrots previously approved these changes Mar 21, 2024
Copy link

@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.

@CriesofCarrots - Do you have any reservations about this change? Technically, I think 150 pre-dates 128, but 128 is in a more visible place and a power-of-2 😉 .

Given that the value is still configurable, I don't have any reservations. Might be worth mentioning in the changelog, though.

@steviez
Copy link

steviez commented Mar 21, 2024

Ohh yeah, good call on changelog. @bartenbach, can you please make an addition there as well:
https://github.com/anza-xyz/agave/blob/master/CHANGELOG.md

Something like:

Change default value for --health-check-slot-distance from 150 to 128

I don't anticipate us BP'ing this change, so I think under the 2.0.0 section is appropriate

@bartenbach bartenbach dismissed stale reviews from CriesofCarrots and steviez via 23d5ac1 March 21, 2024 21:22
@mergify mergify bot requested a review from a team March 21, 2024 21:22
@steviez steviez added the CI Pull Request is ready to enter CI label Mar 21, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Mar 21, 2024
Copy link

@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.

LGTM, thanks!

@steviez steviez merged commit 0906b89 into anza-xyz:master Mar 22, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants