Codify performance manifests#24
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cynepco3hahue The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
The asset directory will include: - shell scripts needed for performance machine configuration resource - tuned profiles needed for performance tuned resource Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
0582bed to
02ce4dc
Compare
02ce4dc to
59039db
Compare
e368b48 to
5a3c2af
Compare
|
|
||
| sed -i "s^initrd .*\$^& ${RHCOS_OSTREE_BOOTLOADER_PATH}iso_initrd.img^" $entry_file | ||
|
|
||
| #TODO - once RHCOS image contains the initrd content we can set parameters with rpm-ostree: |
There was a problem hiding this comment.
We might actually be able to test that already with latest RHCOS changes , but ill do it in another PR
- cluster feature gate resource - kubelet config resource - machine config resource - machine config pool - tuned resource Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
It should validate correctness of yaml generation with specified parameters. Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
5a3c2af to
f7c3a68
Compare
| [cpu] | ||
| # https://github.com/redhat-performance/tuned/blob/master/profiles/latency-performance/tuned.conf | ||
| # https://github.com/redhat-performance/tuned/blob/master/profiles/network-latency/tuned.conf | ||
| force_latency=cstate.id:1|3 |
There was a problem hiding this comment.
there might be an issue with this format of setting latency (using the OR operand) , investigating this but worth checking if tuned pod doesn't have any errors with that here .
There was a problem hiding this comment.
We can fix it under the separate PR
| } | ||
|
|
||
| func getKernelArgs(hugePages *performancev1alpha1.HugePages, isolatedCPUs *performancev1alpha1.CPUSet) []string { | ||
| kargs := []string{ |
There was a problem hiding this comment.
Can we pass these values in the CR as well ? Can we and do we want to pass then in the CR ?
There was a problem hiding this comment.
Currently, I pass the whole performance profile.
|
@cynepco3hahue overall looks ok , If there are specific files that were not migrated as they are and are worth a second look please specify them. |
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
|
@yanirq e2e tests
Fixed unittest, e2e tests requires the deployment of the operator, will create following PR once #25 will be merged. |
|
/lgtm |
|
@cynepco3hahue: The following test failed, say
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. DetailsInstructions 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. |
davidvossel
left a comment
There was a problem hiding this comment.
nice pr! i know I'm reviewing retroactively. I just thought it would be worth leaving some notes of things I saw along the way of looking through the changes.
| // LabelMachineConfigurationRole defines the label for machine configuration role | ||
| LabelMachineConfigurationRole = "machineconfiguration.openshift.io/role" | ||
| // LableMachineConfigPoolRole defines the label for machine config pool role | ||
| LableMachineConfigPoolRole = "machineconfigpool.openshift.io/role" |
| // Enabled enables real time kernel on relevant nodes. | ||
| Enabled *bool `json:"enabled,omitempty"` | ||
| // RepoURL defines the URL to the repository with real time kernel packages | ||
| RepoURL *string `json:"repoURL,omitempty"` |
There was a problem hiding this comment.
is this going to eventually turn back into a boolean soon?
| ` | ||
|
|
||
| var _ = Describe("Tuned", func() { | ||
| Context("with worker real time kerbnel profile", func() { |
Added more tests to sctp feature. Tests: KernelModule, Connectivity
Codify performance manifests to make it easier to introduce complex logic for applying this manifest.