Loading…
Topic
KEDA
3 posts about KEDA. Every summary links to the original.
- 3 posts
- 2 companies
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.
Newest first
Posts
How one quadratic webhook handler pinned our autoscaler at its ceiling
Our Control RPC deployment normally runs 32 pods but scaled to 256 for hours, an 8x increase against 2x more traffic. The KEDA autoscaler’s P95 busyness target caused infinite scaling because adding pods does not reduce the busiest pod’s metric, analogous to hiring lemonade-stand helpers when any helper looks busy. Raising the target by 15 percent and switching to P75 helped only slightly; the pod count stayed near ceiling during peaks. The root cause was three bugs in the GitLab integration: a grouping error, a race condition, and an N-squared lookup loop that turned each webhook into millions of internal RPC calls across the silo boundary. After patching, the average pod count dropped from 150 to 42, a 72 percent reduction, but the autoscaler still spirals when the P75 busyness metric is restored.
Comparison of Cluster Autoscaler and KEDA MachineSet Autoscaling on Red Hat OpenShift
This article compares two autoscaling approaches for Red Hat OpenShift compute infrastructure: the built-in Cluster Autoscaler and the KEDA-driven MachineSet Autoscaler. The key difference is the trigger mechanism: Cluster Autoscaler reacts to Pending pods, while KEDA scales based on external metrics like PromQL queries. KEDA triggers faster, scaling within about 15 minutes versus 24 minutes for Cluster Autoscaler, because it acts on metric thresholds before pods become unschedulable. Cluster Autoscaler offers built-in scale-down safety and zero configuration, while KEDA provides fine-grained, metric-driven control but requires the Custom Metrics Autoscaler operator. The choice depends on workload predictability, with Cluster Autoscaler suited for general-purpose workloads and KEDA for dedicated pools with predictable metric patterns. The two autoscalers cannot coexist on the same MachineSet, as they would fight over replica counts.
Red Hat OpenShift autoscaling using MachineSet autoscaler with KEDA
The demonstration compares OpenShift MachineSet Autoscaler with KEDA against the previously used Cluster Autoscaler, using metrics to scale a MachineSet before pods remain pending. After installing Red Hat’s Custom Metrics Autoscaler operator (KEDA 2.19), granting permissions for MachineSet scaling and Thanos/Prometheus access, it creates a ScaledObject with a Prometheus trigger targeting demo-p4p95-worker-eastus3. Because a MachineSet has no pods, the HPA path cannot use metricType: Value, so AverageValue is paired with a PromQL query that multiplies CPU request utilization by the current node count. With nine one-CPU test pods, the MachineSet scaled from one to two to three nodes as the metric crossed 75%, and all pods reached Running; two additional Standard_D4s_v3 VMs were provisioned in zone 3.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.