-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
feat: warning log if primary beacon node is unhealthy #6921
Conversation
@@ -42,5 +42,6 @@ export function getClient(opts: HttpClientOptions, modules: ClientModules): ApiC | |||
node: node.getClient(config, httpClient), | |||
proof: proof.getClient(config, httpClient), | |||
validator: validator.getClient(config, httpClient), | |||
httpClient, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative to exposing the http client here would be to emit the warning inside the http client itself but that's not ideal either because a) it does not have any context to what it is connected meaning the log message would have to be more generic and b) it's does not have access to the clock, could emit the warning at an arbitrary interval but emitting on validator makes more sense to me.
@@ -134,6 +134,19 @@ export class Validator { | |||
this.clock.start(this.controller.signal); | |||
this.chainHeaderTracker.start(this.controller.signal); | |||
|
|||
// Add notifier to warn user if primary node is unhealthy as there might |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something to consider is a dedicated notifier as we have it in the beacon node, this would allow to emit further information every epoch / slot, for example the statuses of imported validators / active keys, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be nice
Performance Report✔️ no performance regression detected Full benchmark results
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #6921 +/- ##
============================================
- Coverage 62.52% 62.50% -0.02%
============================================
Files 575 575
Lines 60985 61002 +17
Branches 2118 2127 +9
============================================
+ Hits 38128 38131 +3
- Misses 22818 22832 +14
Partials 39 39 |
🎉 This PR is included in v1.20.0 🎉 |
Motivation
Closes #6611
Description
Add warning log if primary beacon node is unhealthy
Related to #6415