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

Bug 1711070 - Set container resource requests #229

Conversation

kevinrizza
Copy link
Member

  • Set container resource requests for operator deployment
  • Set container resource requests for registry pod deployments

https://bugzilla.redhat.com/show_bug.cgi?id=1711070

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kevinrizza

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

The pull request process is described 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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 23, 2019
@kevinrizza
Copy link
Member Author

/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 23, 2019
@kevinrizza
Copy link
Member Author

Putting a hold on this pr while I wait for a response regarding the magic numbers for these resource limits:

https://bugzilla.redhat.com/show_bug.cgi?id=1711070#c7

@ecordell
Copy link
Member

ecordell commented Aug 3, 2019

@kevinrizza What do you think of this plan:

Pick requests for marketplace-operator:

  • Something around what current cpu usage is
  • Breathing room for memory request, maybe 120% of what current memory usage is with the default operatorsources

Pick a default request for the registry pods that marketplace spins up:

  • Something around what current cpu usage is
  • Breathing room for memory request, maybe 120% of whatever the max is for one of the default registry pods.

Then, in the future, we can:

  • remove the appregistry caching from marketplace-operator, which will make its memory relatively static (and lower than tody)
  • remove actual content storage from operator-registry, so that size doesn't fluctuate as much and we can have some reasonable defaults

Having any values for resource requests are better than what we have today, and we can continue to refine over time. Right now the scheduler doesn't know anything about these pods.

@kevinrizza
Copy link
Member Author

@kevinrizza What do you think of this plan:

Pick requests for marketplace-operator:

  • Something around what current cpu usage is
  • Breathing room for memory request, maybe 120% of what current memory usage is with the default operatorsources

Pick a default request for the registry pods that marketplace spins up:

  • Something around what current cpu usage is
  • Breathing room for memory request, maybe 120% of whatever the max is for one of the default registry pods.

Then, in the future, we can:

  • remove the appregistry caching from marketplace-operator, which will make its memory relatively static (and lower than tody)
  • remove actual content storage from operator-registry, so that size doesn't fluctuate as much and we can have some reasonable defaults

Having any values for resource requests are better than what we have today, and we can continue to refine over time. Right now the scheduler doesn't know anything about these pods.

This makes sense to me for now. I did some cursory memory testing with a cluster in AWS and set these defaults:

50mi for the operator deployment
100mi for all registry deployments

I updated the pr accordingly. @ecordell @tkashem @awgreene Please review.

@kevinrizza
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 8, 2019
@ecordell
Copy link
Member

@kevinrizza could you do a quick rebase on this?

@ecordell
Copy link
Member

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 22, 2019
* Set container resource requests for operator deployment
* Set container resource requests for registry pod deployments
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2019
@kevinrizza
Copy link
Member Author

@ecordell had to rebase this one after changes were made to the manifests, can I get another lgtm?

@kevinrizza
Copy link
Member Author

/retest

@kevinrizza
Copy link
Member Author

/test e2e-aws-upgrade

@ecordell
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2019
@openshift-merge-robot openshift-merge-robot merged commit e53620d into operator-framework:master Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants