-
Notifications
You must be signed in to change notification settings - Fork 380
feat: bootup time metrics #5162
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
Conversation
| return | ||
| case <-syncCheckTicker.C: | ||
| synced := isFullySynced() | ||
| logger.Debug("sync status check", "synced", synced, "reserveSize", localStore.ReserveSize(), "threshold", reserveTreshold, "syncRate", pullerService.SyncRate()) |
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 change log level to Trace, because it will spam every second until ReserveSize reaches trashold? Or we can even increase the time checking to 2 seconds?
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.
I increased the time check to 2 seconds because debug level is the most verbose.
pkg/salud/salud.go
Outdated
| wg sync.WaitGroup | ||
| totaldur float64 | ||
| peers []peer | ||
| neighborhoodPeers []peer |
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.
As I see this is more like a counter, why slice of peer ?
Bee Network Metrics Enhancement Session Summary
Code Changes and Investigations
Neighborhood Metrics Implementation
enhanced the Salud package with new metrics to better track neighborhood-specific performance:
NeighborhoodAvgDur: Tracks average response duration specifically for neighborhood peersNeighborCount: Tracks the count of neighborhood peersNode Spinup Metrics:
Defined node metrics in pkg/node/metrics.go:
WarmupDuration: Histogram measuring time for node warmup to completeFullSyncDuration: Histogram measuring time for full sync to completeImplemented metrics collection in pkg/node/node.go:
Grafana Visualization Proposal
Below is a Grafana dashboard design to visualize the newly introduced metrics:
Node Spinup Performance Dashboard
bee_init_warmup_duration_secondsbee_salud_neighborsbee_salud_neighborhood_durbee_storer_reserve_size_within_radiusChecklist
Description
Open API Spec Version Changes (if applicable)
Motivation and Context (Optional)
Related Issue (Optional)
Screenshots (if appropriate):