-
Notifications
You must be signed in to change notification settings - Fork 370
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
[LatencyMonitor] Decouple sending of ICMP probes and latency reporting #6812
base: main
Are you sure you want to change the base?
Conversation
Decoupled the sending of probes from the latency reporting in the NodeLatencyMonitor
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.
thanks for your PR
please refer to the appropriate issue in the commit message and PR description using Fixes #<issue number>
pkg/agent/monitortool/monitor.go
Outdated
updateReportTicker := func(interval time.Duration) { | ||
// Set minimum reporting interval to 10 seconds if needed | ||
reportInterval := interval | ||
if reportInterval < 10*time.Second{ |
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.
define a top-level constant for the minimum reporting interval
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 have done the needful changes as asked well your review required in this regard
…d added delay before reporting
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.
The code changes look good to me, and I have approved running the github workflows for the PR. Some changes to unit tests may be required. Did you run the unit tests for this package locally?
Confirmed that unit tests are failing in CI |
|
Fixes #6570
Separated the process of sending probes and reporting the latency to the response of send probes
Reporting frequency handled by a conditional block where minimum report interval is set to 10s with added jitter to avoid synchronization
I sincerely seek your guidance in resolving this issue and would greatly value your feedback and insights on the proposed changes.