Skip to content

Conversation

@rohanKanojia
Copy link
Contributor

@rohanKanojia rohanKanojia commented Oct 10, 2025

What does this PR do?

While verifying https://issues.redhat.com/browse/CRW-9493 , this point created a lot of confusion as configured CPU/Memory resource limits were not directly reflected in the workspace pod. I performed some tests with various resource limits in CheCluster and noticed configured limits are included in the workspace pod, it's just that additional overhead is added for Editor used:

CheCluster CPU (limit / request) CheCluster Memory (limit / request) Actual Pod CPU (limit / request) Actual Pod Memory (limit / request) Δ CPU (limit / request) Δ Memory (limit / request)
4 / 2 500Mi / 300Mi 4500m / 2030m 1524Mi / 556Mi +500m / +30m +1024Mi / +256Mi
3 / 1 6Gi / 4Gi 3500m / 1030m 7Gi / 4352Mi +500m / +30m +1Gi / +352Mi
2 / 1 4Gi / 2Mi 2500m / 1030m 5Gi / 258Mi +500m / +30m +1Gi / +256Mi
200m / 100m 200Mi / 100Mi 700m / 130m 1224Mi / 356Mi +500m / +30m +1024Mi / +256Mi

Added a note to the GoDoc for DefaultContainerResources explaining how actual resource values are calculated — as the sum of CheCluster defaults and editor overhead. Included a link to the official Che documentation https://eclipse.dev/che/docs/stable/administration-guide/calculating-che-resource-requirements/ for more details.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

It's related to https://issues.redhat.com/browse/CRW-9493

How to test this PR?

It's just a documentation change.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

…reference link

Added a note to the GoDoc for DefaultContainerResources explaining how actual
resource values are calculated — as the sum of CheCluster defaults and editor
overhead. Included a link to the official Che documentation for more details.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rohanKanojia, vinokurig

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link

PR needs rebase.

Details

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants