-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
add auto_calculation for system_reserved resources #10830
add auto_calculation for system_reserved resources #10830
Conversation
Hi @Payback159. Thanks for your PR. I'm waiting for a kubernetes-sigs 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/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Payback159 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 |
I am currently considering whether we should take this as an opportunity to rename the system_master* variables to system_control_plane*. This would lead to a user-facing change but it should be done either way or what do you think? |
the *_master and *_node variable needs to go anyway, they are redundant with group_vars. I'm overhauling that part (cgroups / reserved stuff) in #10714 |
Besides that, what system components do you think scale their resources usages with number of scheduled pods exactly ? |
@VannTen you are completely right. I confused it with kube-reserved as I was thinking about necessary file-handler and additional load on the kubelet agents, container runtime per pod/container. If you agree with me I would like to adapt the PR to provide the logic for kube-reserved. For system-reserved it makes less sense to me, as these should correlate less strongly with the load. |
/ok-to-test |
@Payback159: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
Fine by me. Another remark: it would a good idea to document (and links to in the best case) the calculation method used. (that would make it easier to see if we could change it in the future in particular). |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Reserving resources helps to improve the stability of the cluster components. In my opinion, the resource consumption of the system also changes with the load of the node (Scheduled Pods), so there should also be a possibility to reserve the system resources relative to the node size.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Calculation was copied from here: https://cloud.google.com/anthos/clusters/docs/on-prem/latest/how-to/resources-available-pods I have added a new variable
system_reserved_auto_calculate
so that Kubespray users can decide whether they want to use the automatic calculation or assign absolute values.Does this PR introduce a user-facing change?: