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

added warning if node is unhealthy #6833

Conversation

AkshatGada
Copy link

@AkshatGada AkshatGada commented May 30, 2024

added warning if node is unhealthy
fixes #6611

@AkshatGada AkshatGada requested a review from a team as a code owner May 30, 2024 17:19
@CLAassistant
Copy link

CLAassistant commented May 30, 2024

CLA assistant check
All committers have signed the CLA.

.then((health) => metrics.beaconHealth.set(health))
.then((health) => {metrics.beaconHealth.set(health);
if(health == 0){
this.logger.warn("Node is unhealthy");
Copy link
Member

Choose a reason for hiding this comment

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

this can't be checked here as the getHealth call here will be retried to fallback nodes, meaning this log will only be triggered if all connected nodes are unhealthy which is not what we want as per issue.

Please double check what was noted in the issue, we might have to use the url score tracked in the http client internally to determine if primary node is unhealthy, this also avoids false positives, i.e. a single failed request will not trigger an unhealthy warning.

See also related PR #6415 on how we currently track if primary node is unhealthy in metrics.

Copy link
Author

Choose a reason for hiding this comment

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

I understood how to solve it , thanks for the info , will be back with the fix .

@nflaig
Copy link
Member

nflaig commented Jun 29, 2024

Closed in favor of #6921

@nflaig nflaig closed this Jun 29, 2024
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.

Add warning log to validator client if primary node is unhealthy
3 participants