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
OCPVE-382: fix: add default state for crio config #700
OCPVE-382: fix: add default state for crio config #700
Conversation
adding default state for crio config to enforce correct cpu share allocation when no workload pinning config is supplied Signed-off-by: ehila <ehila@redhat.com>
@eggfoobar: This pull request references OCPVE-382 which is a valid jira issue. In response to this:
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. |
/assign @jmencak |
LGTM from CRI-O side |
Validated behavior is correct on release build with this PR. Steps:
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eggfoobar, jmencak 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 |
pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go
Outdated
Show resolved
Hide resolved
thanks for the validation, appreciated. Do we have (at least one) functests covering this flow? If not we should probably add them. |
Signed-off-by: ehila <ehila@redhat.com>
I don't think there are func tests in this repo for empty state. I'll be adding CPU set and CPU share checks on origin to accompany this API feature going GA. If it's okay with you @ffromani I can add functests here in a different PR as part of that effort, what do you think? Currently tracking that here https://issues.redhat.com/browse/OCPVE-318 |
@eggfoobar: all tests passed! Full PR test history. Your PR dashboard. 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. |
Yeah, our test suite does not have a lane for checking the install bootstrapping of a WP SNO. I am ok with relying on the check of generated manifests. /lgtm |
The original implementation of workload partitioning tried to leverage default behavior for CRIO to allow full use of CPU Sets when no Performance Profile is supplied by the user while still being a CPU partitioned cluster. This works fine for CPU affinity however because we don't supply a config and allow the default behavior to kick in, CRIO does not alter the CPU share and gives all pods 2 CPU Share value.
We need to supply a config for CRIO with an empty string for CPU Set to support both CPU share and CPU affinity behavior when NO performance profile is supplied, so that the
resource.requests
which get altered to CPU Share, are correctly being applied in a default state./assign @haircommander