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

Our larger RHTAP tenants need more memory quota #944

Closed
wants to merge 37 commits into from

Conversation

amfred
Copy link

@amfred amfred commented Dec 5, 2023

By making containers a little less CPU-hungry by default, we're now able to start up more containers. But now we're running into memory quotas for the larger tenants. Meanwhile, we still have plenty of actual capacity on our clusters.

I also removed the CPU limit quota. There's still a CPU request quota.

Paired with: codeready-toolchain/toolchain-e2e#861

Copy link

openshift-ci bot commented Dec 5, 2023

Hi @amfred. Thanks for your PR.

I'm waiting for a codeready-toolchain member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also create a paired PR (with the same branch name as this one) for our e2e tests. See an example of such paired PR here: codeready-toolchain/toolchain-e2e#853

@amfred amfred changed the title Our larger RHTAP tenants need more memory quota HOLD: Our larger RHTAP tenants need more memory quota Dec 5, 2023
@amfred
Copy link
Author

amfred commented Dec 5, 2023

/hold
Let's see if your bots recognize that :-)

@openshift-ci openshift-ci bot added the approved label Dec 6, 2023
@alexeykazakov
Copy link
Contributor

/ok-to-test

@amfred amfred force-pushed the more-memory-quota branch 2 times, most recently from 2df1646 to da8fa61 Compare December 19, 2023 13:23
@amfred amfred changed the title HOLD: Our larger RHTAP tenants need more memory quota Our larger RHTAP tenants need more memory quota Dec 19, 2023
@amfred
Copy link
Author

amfred commented Dec 19, 2023

Yay, passing tests.
image

@amfred
Copy link
Author

amfred commented Dec 19, 2023

I was able to manually test with these settings and my PipelineRuns were able to complete:
Default LimitRange settings:

spec:
  limits:
    - type: Container
      default:
        memory: 2Gi
      defaultRequest:
        cpu: 200m
        memory: 256Mi

compute-build ResourceQuota:

spec:
  hard:
    limits.memory: 512Gi
    requests.cpu: '24'
    requests.memory: 128Gi
  scopes:
    - Terminating

compute-deploy ResourceQuota:

spec:
  hard:
    limits.memory: 32Gi
    requests.cpu: 1750m
    requests.memory: 32Gi
  scopes:
    - NotTerminating
image

So I think we're OK to go with this change.

@amfred
Copy link
Author

amfred commented Dec 19, 2023

/retest

1 similar comment
@amfred
Copy link
Author

amfred commented Dec 19, 2023

/retest

@amfred
Copy link
Author

amfred commented Dec 19, 2023

/remove-hold

amfred and others added 18 commits January 22, 2024 19:20
Signed-off-by: Bama Charan Kundu <bamachrn@gmail.com>
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
update parameter values in the 'from' template

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
update parameter values in the 'from' template

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
* Regenerated from API changes

* regenerated

* regenerated

* regenerated

---------

Co-authored-by: Matous Jobanek <mjobanek@redhat.com>
Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure the PR is clean and doesn't contain unrelated changes. Please take a look at my comment.

@@ -0,0 +1,125 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what's going on but there is a bunch of unrelated changes in the PR which has been already merged into the master branch. Not sure why GitHub still showing them here...
Like this CRD for example.

Copy link

openshift-ci bot commented Jan 23, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: amfred
Once this PR has been reviewed and has the lgtm label, please assign michaelkleinhenz for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot removed the approved label Jan 23, 2024
Copy link

sonarqubecloud bot commented Feb 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
18.5% Duplication on New Code

See analysis details on SonarCloud

@amfred
Copy link
Author

amfred commented Feb 6, 2024

@bamachrn What are the new PRs that replace this?

@amfred
Copy link
Author

amfred commented Feb 6, 2024

/hold

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Merging #944 (efc5ab2) into master (dc76273) will decrease coverage by 0.02%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #944      +/-   ##
==========================================
- Coverage   83.75%   83.74%   -0.02%     
==========================================
  Files          53       53              
  Lines        6187     6187              
==========================================
- Hits         5182     5181       -1     
- Misses        820      821       +1     
  Partials      185      185              

see 1 file with indirect coverage changes

@mfrancisc
Copy link
Contributor

Should we close this ? As I see there is a new PR #969

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.

8 participants