You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<1> A TuneD profile to apply on a match. For example `tuned_profile_1`.
150
149
<2> Profile ordering priority. Lower numbers mean higher priority (`0` is the highest priority).
151
-
<3> Optional: A dictionary of key-value pairs `MachineConfig` labels. The keys must be unique.
152
-
<4> If omitted, profile match is assumed unless a profile with a higher priority matches first or `machineConfigLabels` is set.
153
-
<5> The label for the profile matched items.
150
+
<3> If omitted, profile match is assumed unless a profile with a higher priority matches first.
151
+
<4> The label for the profile matched items.
154
152
endif::[]
155
153
156
154
`<match>` is an optional list recursively defined as follows:
@@ -181,6 +179,7 @@ ifdef::rosa-hcp-tuning[]
181
179
endif::[]
182
180
183
181
If `<match>` is not omitted, all nested `<match>` sections must also evaluate to `true`. Otherwise, `false` is assumed and the profile with the respective `<match>` section will not be applied or recommended. Therefore, the nesting (child `<match>` sections) works as logical AND operator. Conversely, if any item of the `<match>` list matches, the entire `<match>` list evaluates to `true`. Therefore, the list acts as logical OR operator.
182
+
ifndef::rosa-hcp-tuning[]
184
183
185
184
If `machineConfigLabels` is defined, machine config pool based matching is turned on for the given `recommend:` list item. `<mcLabels>` specifies the labels for a machine config. The machine config is created automatically to apply host settings, such as kernel boot parameters, for the profile `<tuned_profile_name>`. This involves finding all machine config pools with machine config selector matching `<mcLabels>` and setting the profile `<tuned_profile_name>` on all nodes that are assigned the found machine config pools. To target nodes that have both master and worker roles, you must use the master role.
186
185
@@ -190,7 +189,7 @@ The list items `match` and `machineConfigLabels` are connected by the logical OR
190
189
====
191
190
When using machine config pool based matching, it is advised to group nodes with the same hardware configuration into the same machine config pool. Not following this practice might result in TuneD operands calculating conflicting kernel parameters for two or more nodes sharing the same machine config pool.
192
191
====
193
-
192
+
endif::rosa-hcp-tuning[]
194
193
.Example: Node or pod label based matching
195
194
196
195
ifndef::rosa-hcp-tuning[]
@@ -263,8 +262,8 @@ Finally, the profile `openshift-node` has the lowest priority of `30`. It lacks
To minimize node reboots, label the target nodes with a label the machine config pool's node selector will match, then create the Tuned CR above and finally create the custom machine config pool itself.
@@ -342,7 +340,13 @@ To minimize node reboots, label the target nodes with a label the machine config
342
340
343
341
*Cloud provider-specific TuneD profiles*
344
342
345
-
With this functionality, all Cloud provider-specific nodes can conveniently be assigned a TuneD profile specifically tailored to a given Cloud provider on a {product-title} cluster. This can be accomplished without adding additional node labels or grouping nodes into machine config pools.
343
+
With this functionality, all Cloud provider-specific nodes can conveniently be assigned a TuneD profile specifically tailored to a given Cloud provider on a {product-title} cluster. This can be accomplished without adding additional node labels or grouping nodes into
344
+
ifndef::rosa-hcp-tuning[]
345
+
machine config pools.
346
+
endif::rosa-hcp-tuning[]
347
+
ifdef::rosa-hcp-tuning[]
348
+
machine pools.
349
+
endif::rosa-hcp-tuning[]
346
350
347
351
This functionality takes advantage of `spec.providerID` node object values in the form of `<cloud-provider>://<cloud-provider-specific-id>` and writes the file `/var/lib/tuned/provider` with the value `<cloud-provider>` in NTO operand containers. The content of this file is then used by TuneD to load `provider-<cloud-provider>` profile if such profile exists.
0 commit comments