Skip to content
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

Set empty CPU limits when possible #22198

Closed
2 of 3 tasks
l0rd opened this issue May 5, 2023 · 1 comment
Closed
2 of 3 tasks

Set empty CPU limits when possible #22198

l0rd opened this issue May 5, 2023 · 1 comment
Assignees
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system. team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che
Milestone

Comments

@l0rd
Copy link
Contributor

l0rd commented May 5, 2023

Is your enhancement related to a problem? Please describe

If a container reach a CPU limit it gets throttled (paused for a few ms). A container that get throttled performs poorly and can have side effects that are hard to associate with throttling.

In other words when setting CPU limits the application may behave in a weird way and users can lose hours figuring out why.

LimitRanges are used in Kubernetes clusters to set default request/limit for compute resources in a namespace and automatically inject them to Containers at runtime. If a default CPU limit is set in the Che namespace or in the workspaces namespaces, then we have to specify the CPU limits to avoid that an arbitrary limit gets set. But otherwise we don't have to.

Describe the solution you'd like

If there is no LimitRange or there is one but it doesn't specify the default CPU Limit in one of the following namespaces:

@l0rd l0rd added the kind/enhancement A feature request - must adhere to the feature request template. label May 5, 2023
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label May 5, 2023
@l0rd l0rd changed the title Don't set CPU limits when LimitRanges are not injecting a default value Set empty CPU limits when possible May 5, 2023
@l0rd l0rd added area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels May 5, 2023
@ibuziuk ibuziuk added sprint/next team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che labels May 11, 2023
@ibuziuk ibuziuk added this to the 7.68 milestone May 17, 2023
@tolusha tolusha removed this from the 7.68 milestone Jul 4, 2023
@tolusha tolusha added this to the 7.71 milestone Jul 6, 2023
@tolusha tolusha closed this as completed Jul 6, 2023
@tolusha
Copy link
Contributor

tolusha commented Jul 6, 2023

I mark this issue as resolved.
Here is a dedicated issue for DWO devfile/devworkspace-operator#1126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system. team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che
Projects
None yet
Development

No branches or pull requests

4 participants