-
Notifications
You must be signed in to change notification settings - Fork 375
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 |
|
@antoninbas could you please guide me along what changes i have to do in monitor_test.go file in accordance to changes i have made in monitor.go a little refrerence would be helpful |
The first step is to run |
Now all test are running except test at 712 line number of monitor_test.go
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.
please leave a comment when you are ready and you want to request a review for us (or use the Github request review functionality).
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.
It's bad practice to check in a binary file to source control
It's great if you want to use act
locally (even though you should not need it for this change), but please do not check in the act
folder.
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.