Scale automation orchestrator components

Adjust replica counts and autoscaling thresholds for automation orchestrator components after the initial deployment.

Scale component replicas

Adjust the number of replicas for any component by updating the custom resource. The automation orchestrator operator applies scaling changes with no downtime.

$ oc patch automationorchestrator my-orchestrator -n automation-orchestrator \
    --type merge -p '{"spec":{"worker":{"replicas":5}}}'

Tune background worker autoscaling

The background worker scales automatically based on CPU usage. When CPU usage across the background worker replicas exceeds the target threshold, the automation orchestrator operator adds replicas. When usage drops, the operator removes replicas.

By default, the background worker scales between 1 and 5 replicas with a target CPU utilization of 80%.

To change the scaling range or CPU target, update the spec.backgroundWorker.hpa fields on the custom resource:

$ oc patch automationorchestrator my-orchestrator -n automation-orchestrator \
    --type merge -p '{"spec":{"backgroundWorker":{"hpa":{"minReplicas":2,"maxReplicas":10}}}}'

See Background worker autoscaling for the full field reference.