Skip to content

doc : add note clarifying defaultContainerResources behavior and add reference link#2053

Open
rohanKanojia wants to merge 1 commit intoeclipse-che:mainfrom
rohankanojia-forks:pr/doc-effective-container-resources-editor-overhead
Open

doc : add note clarifying defaultContainerResources behavior and add reference link#2053
rohanKanojia wants to merge 1 commit intoeclipse-che:mainfrom
rohankanojia-forks:pr/doc-effective-container-resources-editor-overhead

Conversation

@rohanKanojia
Copy link
Copy Markdown
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.

@openshift-ci
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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.

@rohanKanojia rohanKanojia force-pushed the pr/doc-effective-container-resources-editor-overhead branch from 0a3e18a to a274cf8 Compare April 13, 2026 07:13
@openshift-ci openshift-ci bot removed the lgtm label Apr 13, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 13, 2026

New changes are detected. LGTM label has been removed.

@rohanKanojia rohanKanojia force-pushed the pr/doc-effective-container-resources-editor-overhead branch 3 times, most recently from 7632730 to 5b42561 Compare April 13, 2026 09:31
@tolusha tolusha closed this Apr 14, 2026
@tolusha tolusha reopened this Apr 14, 2026
@rohanKanojia rohanKanojia force-pushed the pr/doc-effective-container-resources-editor-overhead branch from 5b42561 to 70ee6a0 Compare April 14, 2026 09:05
…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>
@rohanKanojia rohanKanojia force-pushed the pr/doc-effective-container-resources-editor-overhead branch from 70ee6a0 to 387f83e Compare April 14, 2026 09:11
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.49%. Comparing base (669c6f7) to head (387f83e).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2053      +/-   ##
==========================================
- Coverage   50.09%   49.49%   -0.61%     
==========================================
  Files          94       96       +2     
  Lines       12569    12555      -14     
==========================================
- Hits         6297     6214      -83     
- Misses       5853     5922      +69     
  Partials      419      419              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 17, 2026

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.

4 participants