-
Notifications
You must be signed in to change notification settings - Fork 21k
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
eth/protocols/snap: add healing and syncing metrics #32258
Conversation
INFO [07-22|17:37:39.514] State sync phase is completed elapsed=1h55m11.733s |
// 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))) |
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.
Update?
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.
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
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.
Okay, I guess inc is the better way of doing it
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.
Maybe we should also track the chain sync time
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.
yeah, maybe another PR, i will merge it first
Adds the heal time and snap sync time to grafana