Red HatRamon Gordillo Gutierrez, Jose Ortiz PadillaExplainer
Red Hat OpenShift autoscaling with Cluster Autoscaler
Summary
Red Hat OpenShift supports compute scaling using Cluster Autoscaler integrated with the OpenShift machine API. The mechanism relies on paired ClusterAutoscaler and MachineAutoscaler custom resources to manage cluster-wide limits and per-MachineSet replica boundaries. Scaling decisions evaluate pending pods against node allocatable capacity and hypothetical node capacity annotations while respecting expander strategies like Random, LeastWaste, or Priority. Cluster Autoscaler checks for unnecessary nodes every 10 seconds, scaling down when utilization falls below configured thresholds and workloads can safely migrate. To mitigate provisioning delays, clusters can adopt overprovisioning via low-priority pause containers or use APIs like ProvisioningRequest and CapacityBuffer for predictive scaling.
Context
Workload demands on Red Hat OpenShift require dynamic infrastructure adjustments, but the built-in Cluster Autoscaler operates solely on scheduling constraints rather than external or queue-based metrics.
Approach / What changed
Deploying paired ClusterAutoscaler and MachineAutoscaler custom resources configures cluster-wide constraints and per-MachineSet bounds, while overprovisioning with pause pods or APIs like ProvisioningRequest proactively reserves capacity.
Takeaways
Cluster Autoscaler requires both ClusterAutoscaler and MachineAutoscaler custom resources; deploying the former alone will not scale the cluster.
Scale-down checks run every 10 seconds and target nodes with utilization below the threshold, excluding nodes hosting local storage, non-controller pods, or restrictive PodDisruptionBudgets.
Overprovisioning reduces pending pod delays by deploying low-priority pause containers (value -10) that production workloads displace via PriorityClass preemption.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.