-
Notifications
You must be signed in to change notification settings - Fork 40.7k
[WIP]Release non-restartable InitContainer CPUs after terminated #131764
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: master
Are you sure you want to change the base?
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @Chunxia202410. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
9250467
to
4033921
Compare
/sig node |
215fe84
to
050fce7
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Chunxia202410 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 |
When I test the Pod restart case, the non-restartable InitContainer will restart, and will not reallocate CPUs again. if no exclusive CPUs, it will use default CPUs. So this solution may not cover this case. |
ff19d69
to
c9a865f
Compare
c9a865f
to
891f0dc
Compare
841ed62
to
3389167
Compare
4f233ff
to
d445769
Compare
d445769
to
903972f
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it:
In some cases, the app container can not reuse the CPU of InitContainer, which lead to CPU leaking.
There are some solutions dissicussed in #112228 (comment)
This PR implement the solution2, release CPUs after non-restart InitContainer CPUs terminated.
Which issue(s) this PR fixes:
Fixes #112228
Special notes for your reviewer:
Pod restart case test failed, when Pod restart, the non-restartable InitContainer will restart, and will not be reallocate CPUs again.
If add the process to reallocate CPU for non-restartable InitContainer, it will be more complicated because multiple situations may need to be considered, such as whether to reallocate only the CPU or reallocate both the CPU, memory and the device. If only the CPU is reallocated, the reallocation may fail due to the absence of prefer numa nodes...