-
Notifications
You must be signed in to change notification settings - Fork 991
feat(cel-shed): add RTT measurement feature for bootstrappers #4148
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
base: main
Are you sure you want to change the base?
Conversation
…s to enhance diagnostics and monitoring capabilities refactor(p2p.go): restructure connection handling and logging to support JSON output and improved RTT statistics processing
…ariable types instead of %s for consistency and better readability
…e string versions of duration fields for better readability in output refactor(p2p.go): change RTTStats struct to exclude original duration fields from JSON output while adding new string fields for JSON serialization
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.
That's useful. Thank you!
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.
utack but this is great thanks :)
@aWN4Y25pa2EK could you just lint pls 🙏🏻 |
Just do |
RTT Measurement Feature for Bootstrapper Connections
Overview
This PR enhances the
cel-shed p2p connect-bootstrappers
command with Round-Trip Time (RTT) measurement capabilities. The new functionality allows users to assess network latency to bootstrapper nodes, helping identify optimal nodes for connection and diagnose potential network issues.Features Added
--ping-count
: Number of ping attempts per bootstrapper (default: 5)--ping-interval
: Interval between ping attempts (default: 500ms)--json
flag for JSON-formatted output to facilitate programmatic consumption--detailed
flag displays individual ping attempt resultsImplementation Details
p2p.Module.Ping()
method to measure RTTExample Usage
JSON Output
Standard Output