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

app: add readyz error when BN can't sync because of zero peers #1961

Merged
merged 3 commits into from
Apr 1, 2023

Conversation

xenowits
Copy link
Contributor

Adds a new readyz error for scenarios when beacon node cannot sync because of zero peers. Without this fix, the grafana healthy panel shows "OK".

IsSyncing: false means that the "Beacon node is not syncing" because either

  • "It is fully synced" OR
  • "Can't sync as it has no peers"

category: bug
ticket: #1732

@xenowits xenowits self-assigned this Mar 29, 2023
@xenowits
Copy link
Contributor Author

Grafana preview:
Screenshot 2023-03-29 at 15 59 05
Screenshot 2023-03-29 at 15 59 29

app/metrics.go Outdated Show resolved Hide resolved
app/monitoringapi.go Outdated Show resolved Hide resolved
@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 29, 2023
@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Patch coverage: 57.14% and project coverage change: +2.32 🎉

Comparison is base (a6be60c) 53.19% compared to head (63a686a) 55.52%.

❗ Current head 63a686a differs from pull request most recent head 8124e68. Consider uploading reports for the commit 8124e68 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1961      +/-   ##
==========================================
+ Coverage   53.19%   55.52%   +2.32%     
==========================================
  Files         174      174              
  Lines       22367    22320      -47     
==========================================
+ Hits        11899    12393     +494     
+ Misses       8964     8344     -620     
- Partials     1504     1583      +79     
Impacted Files Coverage Δ
app/metrics.go 100.00% <ø> (+100.00%) ⬆️
app/monitoringapi.go 75.88% <57.14%> (+31.71%) ⬆️

... and 16 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@obol-bulldozer obol-bulldozer bot merged commit 9e64958 into main Apr 1, 2023
@obol-bulldozer obol-bulldozer bot deleted the xenowits/fix-bn-issue branch April 1, 2023 16:45
LukeHackett12 pushed a commit that referenced this pull request Apr 11, 2023
Adds a new `readyz` error for scenarios when beacon node cannot sync because of zero peers. Without this fix, the grafana healthy panel shows "OK".

`IsSyncing: false` means that the "Beacon node is not syncing" because either
- "It is fully synced" OR
- "Can't sync as it has no peers" 

category: bug 
ticket: #1732
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants