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

CPU manager static policy #51180

Merged

Conversation

ConnorDoyle
Copy link
Contributor

@ConnorDoyle ConnorDoyle commented Aug 23, 2017

Blocker for CPU manager #49186 (5 of 6)

cc @derekwaynecarr @sjenning @flyingcougar @balajismaniam

Attempting to be fairly accurate with main authorship at least at a file level -- please let me know if anyone has a better idea on how to improve this.

For posterity, here are the Kubelet flags to run the static policy (assuming /kube-reserved is a cgroup that exists for all required controllers)

--feature-gates=CPUManager=true --cpu-manager-policy=static --cpu-manager-reconcile-period=5s --enforce-node-allocatable=pods,kube-reserved --kube-reserved-cgroup=/kube-reserved --kube-reserved=cpu=500m

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 23, 2017
@k8s-github-robot k8s-github-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. labels Aug 23, 2017
@ConnorDoyle ConnorDoyle mentioned this pull request Aug 23, 2017
6 tasks
@ConnorDoyle ConnorDoyle force-pushed the cpu-manager-static-policy branch from 5ade72d to 63d1bec Compare August 23, 2017 07:17
@ConnorDoyle ConnorDoyle changed the title Cpu manager static policy CPU manager static policy Aug 23, 2017
@ConnorDoyle
Copy link
Contributor Author

/unassign @mtaufen @Random-Liu
/assign @derekwaynecarr @sjenning

@ConnorDoyle ConnorDoyle force-pushed the cpu-manager-static-policy branch 7 times, most recently from b0f05ab to 80b112c Compare August 30, 2017 01:16
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 30, 2017
@ConnorDoyle
Copy link
Contributor Author

@derekwaynecarr please add v1.8 milestone

@ConnorDoyle ConnorDoyle force-pushed the cpu-manager-static-policy branch from 80b112c to 7721c97 Compare August 30, 2017 15:51
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 30, 2017
@ConnorDoyle
Copy link
Contributor Author

/test pull-kubernetes-unit
/test pull-kubernetes-kubemark-e2e-gce

@ConnorDoyle
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-bazel

@ConnorDoyle
Copy link
Contributor Author

/test pull-kubernetes-kubemark-e2e-gce

panic("[cpumanager] the static policy requires systemreserved.cpu + kubereserved.cpu to be greater than zero")
}

// Take the ceiling of the reservation, since fractional CPUs cannot be
Copy link
Member

Choose a reason for hiding this comment

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

in the interest of future maintainers, please write more clearly the intent behind this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wrote a lot more comments here and especially in policy_static.go

@ConnorDoyle ConnorDoyle force-pushed the cpu-manager-static-policy branch from bdca6a4 to acf2d5b Compare September 3, 2017 02:29
@ConnorDoyle
Copy link
Contributor Author

Updated to fix crossbuild (is broken in master).

/test pull-kubernetes-cross

@ConnorDoyle
Copy link
Contributor Author

@derekwaynecarr ready for (final?) review, needs new LGTM following update.

@ConnorDoyle
Copy link
Contributor Author

Updated (crossbuild fix merged, requiring another rebase)

/test pull-kubernetes-cross

@ConnorDoyle
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-bazel

@ConnorDoyle ConnorDoyle force-pushed the cpu-manager-static-policy branch from 8857038 to 5b5958e Compare September 4, 2017 14:25
@ConnorDoyle
Copy link
Contributor Author

Rebased again (feature gate conflicted with ExpandPersistentVolumes).

/test pull-kubernetes-cross

@dims
Copy link
Member

dims commented Sep 4, 2017

/test all

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Sep 4, 2017

@ConnorDoyle: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 5b5958e link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@sjenning
Copy link
Contributor

sjenning commented Sep 5, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 5, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ConnorDoyle, derekwaynecarr, sjenning, smarterclayton

Associated issue: 49186

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 51180, 51893)

@ConnorDoyle
Copy link
Contributor Author

Created tracking issue "Requirements to promote CPU Manager from α to β"

k8s-github-robot pushed a commit that referenced this pull request Sep 8, 2017
Automatic merge from submit-queue

Added large topology tests for static policy in CPU Manager.

**What this PR does / why we need it**: This PR adds a very large topology test case for the CPU Manager feature.

Related to #51180. 

CC @ConnorDoyle
k8s-github-robot pushed a commit that referenced this pull request Sep 12, 2017
Automatic merge from submit-queue

Node e2e tests for the CPU Manager. 

**What this PR does / why we need it**:
- Adds node e2e tests for the CPU Manager implementation in #49186.

**Special notes for your reviewer**: 
- Previous PR in this series: #51180
- Only `test/e2e_node/cpu_manager_test.go` must be reviewed as a part of this PR (i.e., the last commit). Rest of the comments belong in #51357 and #51180.
- The tests have been on run on `n1-standard-n4` and `n1-standard-n2` instances on GCE. 

To run this node e2e test, use the following command:
```sh
make test-e2e-node TEST_ARGS='--feature-gates=DynamicKubeletConfig=true' FOCUS="CPU Manager" SKIP="" PARALLELISM=1
```

CC @ConnorDoyle @sjenning
@ConnorDoyle ConnorDoyle deleted the cpu-manager-static-policy branch October 10, 2017 22:07
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.