1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/cnf-customizing-schedulder-ha-nro.adoc

31 lines
956 B
Plaintext
Raw Normal View History

// Module included in the following assemblies:
//
// *scalability_and_performance/cnf-numa-aware-scheduling.adoc
:_mod-docs-content-type: PROCEDURE
[id="customizing-scheduler-replicas_{context}"]
= Customizing scheduler replicas
Set a specific number of scheduler replicas by updating the `spec.replicas` field in the `NUMAResourcesScheduler` custom resource. This overrides the default HA behavior.
.Procedure
. Create the `NUMAResourcesScheduler` CR with the following YAML named for example `custom-ha.yaml` that sets the number of replicas to 2:
+
[source,yaml,subs="attributes+"]
----
apiVersion: nodetopology.openshift.io/v1
kind: NUMAResourcesScheduler
metadata:
name: example-custom
spec:
imageSpec: 'registry.redhat.io/openshift4/noderesourcetopology-scheduler-rhel9:v{product-version}'
replicas: 2
----
. Deploy the NUMA-aware pod scheduler by running the following command:
+
[source,terminal]
----
$ oc apply -f custom-ha.yaml
----