-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[release-v0.65.x] adding efficient polling to waitForStepsToFinish #8911
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: release-v0.65.x
Are you sure you want to change the base?
Conversation
The current waitForStepsToFinish implementation is a classic busy-wait. It checks for file existence without any sleep, resulting in a high CPU usage. Adding a profile with a unit test to show that almost all time is spent in system calls with a high total sample count. This led to execssive CPU usage by the sidecar even when just waiting. The function now sleeps 100ms between checks, drastically reducing the frequency. The sidecar now uses minimal CPU while waiting. Signed-off-by: Priti Desai <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
Introducing getSidecarLogPollingInterval() to avoid repeating the same logic across two different functions. Signed-off-by: Priti Desai <[email protected]>
The following is the coverage report on the affected files.
|
There was still a few references that makes the CI fail. This should fix it. Signed-off-by: Vincent Demeester <[email protected]>
The following is the coverage report on the affected files.
|
/retest |
2 similar comments
/retest |
/retest |
We might need to cherry-pick this commit for the pipeline to succeed. 5f38010 |
Changes
Manual Cherry-pick of #8901
#8901 (comment)
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes