Skip to content

Comments

fix(rhc): bug when target leads reference#2456

Merged
mergify[bot] merged 2 commits intodevelopfrom
sc/fix-healthcheck-bug-1
Apr 13, 2022
Merged

fix(rhc): bug when target leads reference#2456
mergify[bot] merged 2 commits intodevelopfrom
sc/fix-healthcheck-bug-1

Conversation

@smartcontracts
Copy link
Contributor

Description
Fixes a bug that would cause the healthcheck service not to properly
check blocks when the target is advancing faster than the reference
client. RHC will now check the block correpsonding to the lesser of the
two block heights. Also adds a new metric to track the height difference
in the two providers which could be used to alert if the target leads
the reference by too much or vice versa.

Metadata

@changeset-bot
Copy link

changeset-bot bot commented Apr 13, 2022

🦋 Changeset detected

Latest commit: f4bc244

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/replica-healthcheck Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mergify mergify bot requested review from Inphi and cfromknecht April 13, 2022 17:26
Fixes a bug that would cause the healthcheck service not to properly
check blocks when the target is advancing faster than the reference
client. RHC will now check the block correpsonding to the lesser of the
two block heights. Also adds a new metric to track the height difference
in the two providers which could be used to alert if the target leads
the reference by too much or vice versa.
@smartcontracts smartcontracts force-pushed the sc/fix-healthcheck-bug-1 branch from ceed8ce to 7f33ae6 Compare April 13, 2022 17:33
Copy link
Contributor

@optimisticben optimisticben left a comment

Choose a reason for hiding this comment

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

lgtm

@mergify
Copy link
Contributor

mergify bot commented Apr 13, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Apr 13, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot merged commit bc289e9 into develop Apr 13, 2022
@mergify mergify bot deleted the sc/fix-healthcheck-bug-1 branch April 13, 2022 20:10
nebojsa94 pushed a commit to Tenderly/optimism that referenced this pull request Apr 26, 2022
Fixes a bug that would cause the healthcheck service not to properly
check blocks when the target is advancing faster than the reference
client. RHC will now check the block correpsonding to the lesser of the
two block heights. Also adds a new metric to track the height difference
in the two providers which could be used to alert if the target leads
the reference by too much or vice versa.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@mslipper mslipper mentioned this pull request Apr 28, 2022
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.

Healthcheck should wait for heights to converge before updating reference height

3 participants