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

Refactoring to use profiles.tuned.openshift.io #34

Merged
merged 1 commit into from Dec 2, 2019
Merged

Refactoring to use profiles.tuned.openshift.io #34

merged 1 commit into from Dec 2, 2019

Conversation

jmencak
Copy link
Contributor

@jmencak jmencak commented Nov 22, 2019

This is a largish refactoring of the NTO's operand, openshift-tuned.
Changes:

  • Do not pull any node/pod information from the API server. Use
    a shared informer for profiles.tuned.openshift.io objects which
    carry a precalculated tuned profile for the node.
  • Switch to klog, glog seems unmaintained and vendored-in libraries
    already depend on klog.
  • Added tuna and tuned-profiles-cpu-partitioning profiles
  • Redesign of the retry loop
  • Makefile/.gitignore cleanup
  • Added vendor dependencies

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 22, 2019
@jmencak
Copy link
Contributor Author

jmencak commented Nov 22, 2019

/hold
This is a 4.4 branch code, do not merge yet.
Needs to merge together with openshift/cluster-node-tuning-operator#96

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2019
Copy link

@sjug sjug left a comment

Choose a reason for hiding this comment

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

Some thoughts

cmd/openshift-tuned.go Outdated Show resolved Hide resolved
cmd/openshift-tuned.go Show resolved Hide resolved
cmd/openshift-tuned.go Show resolved Hide resolved
cmd/openshift-tuned.go Outdated Show resolved Hide resolved
cmd/openshift-tuned.go Outdated Show resolved Hide resolved
cmd/openshift-tuned.go Outdated Show resolved Hide resolved
cmd/openshift-tuned.go Outdated Show resolved Hide resolved
cmd/openshift-tuned.go Outdated Show resolved Hide resolved
@zvonkok
Copy link

zvonkok commented Nov 29, 2019

Looking good for me, this rework makes the operand as dumb as possible, the new informer and new design will minimize API access and resolve the issue with slow propagation of tuned profiles.

@sjug
Copy link

sjug commented Dec 2, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2019
This is a largish refactoring of the NTO's operand, openshift-tuned.
Changes:
  - Do not pull any node/pod information from the API server.  Use
    a shared informer for profiles.tuned.openshift.io objects which
    carry a precalculated tuned profile for the node.
  - Switch to klog, glog seems unmaintained and vendored-in libraries
    already depend on klog.
  - Added tuna and tuned-profiles-cpu-partitioning profiles
  - Redesign of the retry loop
  - Makefile/.gitignore cleanup
  - Added vendor dependencies
  - Bump the OCP base to 4.4, tuned patches maintenance
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2019
@jmencak jmencak changed the title WIP: Refactoring to use profiles.tuned.openshift.io Refactoring to use profiles.tuned.openshift.io Dec 2, 2019
@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 Dec 2, 2019
@jmencak
Copy link
Contributor Author

jmencak commented Dec 2, 2019

/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 Dec 2, 2019
@sjug
Copy link

sjug commented Dec 2, 2019

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmencak, sjug

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-merge-robot openshift-merge-robot merged commit e626ada into openshift:master Dec 2, 2019
@jmencak jmencak deleted the rearch-4.4 branch December 2, 2019 17:16
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants