-
Notifications
You must be signed in to change notification settings - Fork 152
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
Remove cpu limits from tasks #1821
Remove cpu limits from tasks #1821
Conversation
By removing such CPU limits you will then accept that pods get more CPU (if available on the node) as documented here https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ ? |
@enkeefe00 could you explain the motivation for this change? I don't think anyone here understands it, and it feels like the opposite direction of what @jhutar has been doing (adding resource requests and limits to tasks) |
@cmoulliard Thanks for the link! The question is whether this is the only place where the limit can be set. Are you sure it cannot happen that a lower limit is set elsewhere and we need to override the number in the |
Hello. Generally I'm more concerned about memory request and limit. @hugares , do you have a preference? Regarding if the CPU limit will come from somewhere else: https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#if-you-do-not-specify-a-cpu-limit
So looking at
Looks like we only have default CPU request. Also Tekton plays a role when assigning resources to containers, but looks like that will not be relevant here: https://tekton.dev/docs/pipelines/compute-resources/ |
Yes, my apologies. My ticket aims to remove CPU limits from all resources (see this blog's rationale) as the user workloads have been moved to a dedicated node pool. Any resource requests and memory limits should not be affected by this change. @hugares should be able to provide more information if needed. |
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.
@enkeefe00 makes sense, thanks for linking the relevant resources.
The failing check is saying that the "trusted-artifacts" task generator wants to put some limits back in place. You can fix that in task-generator/trusted-artifacts/ta.go
I think
/ok-to-test |
@chmeliik Can we merge this PR? I am not familiar with review/merge process in build-definitions |
We still need reviews from:
|
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.
LGTM
@cmoulliard and @yma96 or @ligangty could you review this PR so we can try to merge it soon? |
/retest |
Closes: KFLUXINFRA-767