3
3
// * scalability_and_performance/using-node-tuning-operator.adoc
4
4
5
5
[id="custom-tuning-example_{context}"]
6
- = Custom tuning example
6
+ = Custom tuning examples
7
+
8
+ *Using TuneD profiles from the default CR*
7
9
8
10
The following CR applies custom node-level tuning for
9
11
{product-title} nodes with label
10
12
`tuned.openshift.io/ingress-node-label` set to any value.
11
- As an administrator, use the following command to create a custom Tuned CR.
12
13
13
- .Custom tuning example
14
- [source,terminal ]
14
+ .Example: custom tuning using the openshift-control-plane TuneD profile
15
+ [source,yaml ]
15
16
----
16
- $ oc create -f- <<_EOF_
17
17
apiVersion: tuned.openshift.io/v1
18
18
kind: Tuned
19
19
metadata:
34
34
- label: tuned.openshift.io/ingress-node-label
35
35
priority: 10
36
36
profile: openshift-ingress
37
- _EOF_
38
37
----
39
38
40
39
[IMPORTANT]
@@ -43,3 +42,45 @@ Custom profile writers are strongly encouraged to include the default TuneD
43
42
daemon profiles shipped within the default Tuned CR. The example above uses the
44
43
default `openshift-control-plane` profile to accomplish this.
45
44
====
45
+
46
+ *Using built-in TuneD profiles*
47
+
48
+ Given the successful rollout of the NTO-managed daemon set, the TuneD operands
49
+ all manage the same version of the TuneD daemon. To list the built-in TuneD
50
+ profiles supported by the daemon, query any TuneD pod in the following way:
51
+
52
+ [source,terminal]
53
+ ----
54
+ $ oc exec $tuned_pod -n openshift-cluster-node-tuning-operator -- find /usr/lib/tuned/ -name tuned.conf -printf '%h\n' | sed 's|^.*/||'
55
+ ----
56
+
57
+ You can use the profile names retrieved by this in your custom tuning specification.
58
+
59
+ .Example: using built-in hpc-compute TuneD profile
60
+ [source,yaml]
61
+ ----
62
+ apiVersion: tuned.openshift.io/v1
63
+ kind: Tuned
64
+ metadata:
65
+ name: openshift-node-hpc-compute
66
+ namespace: openshift-cluster-node-tuning-operator
67
+ spec:
68
+ profile:
69
+ - data: |
70
+ [main]
71
+ summary=Custom OpenShift node profile for HPC compute workloads
72
+ include=openshift-node,hpc-compute
73
+ name: openshift-node-hpc-compute
74
+
75
+ recommend:
76
+ - match:
77
+ - label: tuned.openshift.io/openshift-node-hpc-compute
78
+ priority: 20
79
+ profile: openshift-node-hpc-compute
80
+ ----
81
+
82
+ In addition to the built-in `hpc-compute` profile, the example above includes
83
+ the `openshift-node` TuneD daemon profile shipped within the default
84
+ Tuned CR to use OpenShift-specific tuning for compute nodes.
85
+
86
+ // Note the issues with including profiles sharing the same ancestor: see link:https://bugzilla.redhat.com/show_bug.cgi?id=1825882[BZ#1825882]
0 commit comments