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

eth_exe_sync_is_syncing is being set to 1 while there's no indication of it in logs #81

Open
concentricspheres opened this issue Jun 12, 2023 · 1 comment

Comments

@concentricspheres
Copy link

eth_exe_sync_is_syncing is intermittently changing to 1 in one of our instances, but Execution client logs show no issues or falling behind.

Software:

  • Lighthouse v4.2.0
  • Erigon 2.44.0-stable

Both clients have been running for ~9 days and the intermittent issue surfaced recently.

Can you please provide details on how the eth_exe_sync_is_syncing metric is calculated so we can check the data on the client and figure out if it's actually an issue with the client or with ethereum-metrics-exporter?

@samcm
Copy link
Member

samcm commented Jun 19, 2023

Thanks for the issue :)

That metric is derived here: https://github.com/ethpandaops/ethereum-metrics-exporter/blob/main/pkg/exporter/execution/jobs/syncstatus.go#L127-L165

The calculation is pretty straight forward:

  • Call eth_syncing
  • If the response returned an error -> Do nothing
  • If the response didn't error and the body is empty -> assume the client isn't syncing
  • If the response didn't error and the body isn't empty -> assume the client is syncing and set metrics accordingly

Do you have the values for eth_exe_sync_starting_block, eth_exe_sync_current_block and eth_exe_sync_highest_block from around those times? Might help with diagnosing with one 🙏

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

No branches or pull requests

2 participants