mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * scalability_and_performance/enabling-workload-partitioning.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="enabling-workload-partitioning_{context}"]
|
|
= Enabling workload partitioning
|
|
|
|
With workload partitioning, cluster management pods are annotated to correctly partition them into a specified CPU affinity. These pods operate normally within the minimum size CPU configuration specified by the reserved value in the Performance Profile. Additional Day 2 Operators that make use of workload partitioning should be taken into account when calculating how many reserved CPU cores should be set aside for the platform.
|
|
|
|
Workload partitioning isolates user workloads from platform workloads using standard Kubernetes scheduling capabilities.
|
|
|
|
[NOTE]
|
|
====
|
|
You can enable workload partitioning during cluster installation only. You cannot disable workload partitioning postinstallation. However, you can change the CPU configuration for `reserved` and `isolated` CPUs postinstallation.
|
|
====
|
|
|
|
Use this procedure to enable workload partitioning cluster wide:
|
|
|
|
.Procedure
|
|
|
|
* In the `install-config.yaml` file, add the additional field `cpuPartitioningMode` and set it to `AllNodes`.
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
baseDomain: devcluster.openshift.com
|
|
cpuPartitioningMode: AllNodes <1>
|
|
compute:
|
|
- architecture: amd64
|
|
hyperthreading: Enabled
|
|
name: worker
|
|
platform: {}
|
|
replicas: 3
|
|
controlPlane:
|
|
architecture: amd64
|
|
hyperthreading: Enabled
|
|
name: master
|
|
platform: {}
|
|
replicas: 3
|
|
----
|
|
<1> Sets up a cluster for CPU partitioning at install time. The default value is `None`.
|