Skip to content

eth/protocols/snap: add healing and syncing metrics #32258

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

Merged
merged 6 commits into from
Jul 24, 2025

Conversation

MariusVanDerWijden
Copy link
Member

Adds the heal time and snap sync time to grafana

@rjl493456442
Copy link
Member

INFO [07-22|17:37:39.514] State sync phase is completed elapsed=1h55m11.733s
INFO [07-22|17:39:03.755] State healing phase is completed elapsed=1m24.240s

@rjl493456442
Copy link
Member

截屏2025-07-23 09 10 32

@rjl493456442 rjl493456442 added this to the 1.16.2 milestone Jul 23, 2025
// Note: healing may be rerun in subsequent cycles to fill gaps between
// pivot states (e.g., if chain sync takes longer).
if !s.healStartTime.IsZero() {
stateHealTimeGauge.Inc(int64(time.Since(s.healStartTime)))
Copy link
Member Author

Choose a reason for hiding this comment

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

Update?

Copy link
Member

Choose a reason for hiding this comment

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

We can discuss it in the triage. I am not sure what kind of data is really important for us.

We have a few choices on table:

  • Track the healing time for the first occurrence
  • Track the cumulative healing time for all cycles

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, I guess inc is the better way of doing it

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we should also track the chain sync time

Copy link
Member

Choose a reason for hiding this comment

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

yeah, maybe another PR, i will merge it first

@rjl493456442 rjl493456442 merged commit b369a85 into ethereum:master Jul 24, 2025
4 of 5 checks passed
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