Skip to content

Commit c88c78e

Browse files
authored
Merge pull request #33024 from jmencak/nto-custom-profiles
PSAP-444: NTO - using built-in TuneD profiles
2 parents 00f8832 + 83490a2 commit c88c78e

File tree

1 file changed

+47
-6
lines changed

1 file changed

+47
-6
lines changed

modules/custom-tuning-example.adoc

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
// * scalability_and_performance/using-node-tuning-operator.adoc
44

55
[id="custom-tuning-example_{context}"]
6-
= Custom tuning example
6+
= Custom tuning examples
7+
8+
*Using TuneD profiles from the default CR*
79

810
The following CR applies custom node-level tuning for
911
{product-title} nodes with label
1012
`tuned.openshift.io/ingress-node-label` set to any value.
11-
As an administrator, use the following command to create a custom Tuned CR.
1213

13-
.Custom tuning example
14-
[source,terminal]
14+
.Example: custom tuning using the openshift-control-plane TuneD profile
15+
[source,yaml]
1516
----
16-
$ oc create -f- <<_EOF_
1717
apiVersion: tuned.openshift.io/v1
1818
kind: Tuned
1919
metadata:
@@ -34,7 +34,6 @@ spec:
3434
- label: tuned.openshift.io/ingress-node-label
3535
priority: 10
3636
profile: openshift-ingress
37-
_EOF_
3837
----
3938

4039
[IMPORTANT]
@@ -43,3 +42,45 @@ Custom profile writers are strongly encouraged to include the default TuneD
4342
daemon profiles shipped within the default Tuned CR. The example above uses the
4443
default `openshift-control-plane` profile to accomplish this.
4544
====
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

Comments
 (0)