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: eth2wrap latency logging #3417

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

KaloyanTanev
Copy link
Contributor

Adding logs for some beacon node calls RTT. In order to help tracking issues with underperforming beacon nodes, caused either by slow infrastructure/networking or issues from the beacon node itself.

Currently logs have been added only on the calls for:

  • Proposal (GET /eth/v3/validator/blocks/{slot}) - fetches a proposal for signing and is known to be the bottleneck call to the BNs on proposals.
  • Validators (POST /eth/v1/beacon/states/{state_id}/validators) - on some BNs this call is taking long time and is blocking the whole BN reachability and any calls to it.

I'm open to including more endpoints.

Fixing linter on one place.

category: feature
ticket: none

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 43.18182% with 25 lines in your changes missing coverage. Please review.

Project coverage is 57.28%. Comparing base (28f6ff0) to head (bccaf3a).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
app/eth2wrap/eth2wrap_gen.go 17.39% 19 Missing ⚠️
app/eth2wrap/eth2wrap.go 76.92% 2 Missing and 1 partial ⚠️
app/eth2wrap/genwrap/genwrap.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3417      +/-   ##
==========================================
- Coverage   57.36%   57.28%   -0.09%     
==========================================
  Files         217      217              
  Lines       31977    31977              
==========================================
- Hits        18345    18319      -26     
- Misses      11744    11766      +22     
- Partials     1888     1892       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KaloyanTanev KaloyanTanev force-pushed the kalo/eth2wrap-latency-logging branch from 67e4662 to 2cd6fe0 Compare December 12, 2024 14:14
app/eth2wrap/eth2wrap.go Outdated Show resolved Hide resolved
@KaloyanTanev KaloyanTanev marked this pull request as draft December 12, 2024 14:27
@KaloyanTanev KaloyanTanev marked this pull request as ready for review December 12, 2024 14:42
log.Debug(ctx, "Beacon node call finished", z.Str("endpoint", endpoint))
// If BN call took more than 1 second, send WARN log
if rtt > time.Second {
log.Warn(ctx, "Beacon node call took longer than expected", nil, z.Str("endpoint", endpoint), z.Str("rtt", rtt.String()))
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest we see this warning even when enableLogs is disabled.

Copy link
Contributor

@pinebit pinebit left a comment

Choose a reason for hiding this comment

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

We shall probably discard this work entirely in favor of #3429

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.

3 participants