Skip to content

Conversation

@ewolinetz
Copy link
Contributor

@ewolinetz ewolinetz commented Jun 28, 2019

Previously we were setting the CPU limit to match the CPU request if the request was provided but the limit was not. This removes the logic to set the CPU limit for ES nodes unless it is explicitly defined.

@ewolinetz ewolinetz requested a review from jcantrill June 28, 2019 14:55
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 28, 2019
@openshift-ci-robot
Copy link

@ewolinetz: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state.

In response to this:

[WIP] Bug 1725148: Updating to not set CPU limit unless it is explicitly set

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 28, 2019
@ewolinetz
Copy link
Contributor Author

@jcantrill please review the TC in common_test.go to verify all the scenarios we cover with respect to resources and merging. In this PR we will still set your Mem Limit to be the same as your Mem Request if the limit is omitted (for performance reasons of not needing to reallocate memory to the container and let it grow until the node stops it).

We will also set the request values if only limit is specified.

Copy link
Contributor

@jcantrill jcantrill left a comment

Choose a reason for hiding this comment

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

aside from a few comment nits LGTM

@ewolinetz ewolinetz changed the title [WIP] Bug 1725148: Updating to not set CPU limit unless it is explicitly set Bug 1725148: Updating to not set CPU limit unless it is explicitly set Jun 28, 2019
@ewolinetz ewolinetz force-pushed the dontset_cpu_limit branch from 5e19a94 to 767301c Compare June 28, 2019 16:04
@ewolinetz
Copy link
Contributor Author

/retest

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 28, 2019
@openshift-ci-robot
Copy link

@ewolinetz: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state.

In response to this:

Bug 1725148: Updating to not set CPU limit unless it is explicitly set

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

@jcantrill jcantrill left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 28, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ewolinetz, jcantrill

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:
  • OWNERS [ewolinetz,jcantrill]

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

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants