Cloud infrastructure

Running VPA and HPA Together on EKS

Learn how Salesforce separated replica scaling from pod sizing on Amazon EKS, and how to test the same approach against your own traffic and costs.
By MR Solutions
4 min readPublished
Three stacks of blue tiles rise from left to right on a stone plinth, with a copper tile on the tallest stack.

How a smaller CPU request can trigger more pods

An operations team cuts the CPU reserved for each copy of a service. Traffic stays flat, yet the platform asks for more copies. Before budgeting for savings on Amazon Elastic Kubernetes Service (EKS), check what tells the platform to add a replica.

The Kubernetes Horizontal Pod Autoscaler (HPA) can use CPU consumption as a percentage of requested CPU. Imagine a pod using a quarter of a CPU. Halving its request from one CPU to half a CPU raises its reported utilisation from 25% to 50%. If the Vertical Pod Autoscaler (VPA) makes that change across replicas, the HPA can see a reason to scale out even though customers have sent no extra work.

What another replica can take off your hands

Salesforce’s Istio control plane illustrates how to choose separate signals. Its pods distribute configuration to connected proxies. More pods can share those connections, so Salesforce used HPA to target roughly 500 connected proxies per pod. Every pod also generates the full configuration. Adding another copy leaves that job just as large for each one. VPA adjusts CPU and memory requests for that work.

Apply the same test to one busy service. What work would move to a new replica, and what work would it have to repeat? If connections can move, try average active connections per pod as the horizontal signal. Check that the HPA can read the metric and that new replicas actually receive connections during a surge. A fleet average can conceal an overloaded pod holding long-lived sessions.

If another replica adds little capacity, consider VPA alone. If replicas absorb demand and each runs well at a fixed size, HPA alone may suffice. Pair the controllers when you can explain what each one should change and how you will tell whether it helped.

Test one service before enabling updates

Start with VPA in Off mode. It records recommendations for inspection. Compare them with CPU and memory use during a cold start and a normal peak. Set a lower bound that lets the service become ready on time and an upper bound that fits on an eligible node alongside the pod’s other containers. Use RequestsOnly if the service owner needs to retain explicit control of limits.

In staging, try a sudden rise in connections, then replace a pod while demand stays high. Record connection failures, time to readiness, response latency, pending pods and the busiest pod’s connection count. For an update mode that can evict pods, set a disruption budget and check that the remaining replicas can carry the traffic. Agree a stop condition against the service’s existing latency and availability targets.

If the service breaches a target, pause automatic VPA updates, restore the known-good requests and verify the running pods have those settings. Replay the same load before widening the rollout. Keep the previous replica policy available in case the connection metric also needs to be reverted.

Follow the saving through to the node bill

In its 16 November 2026 AWS case study, Salesforce describes a fleet of more than 1,400 EKS clusters and reports over $5 million in cumulative infrastructure savings. The account also describes a move to Karpenter for node provisioning. The reported total is specific to Salesforce’s fleet and rollout.

For your pilot, compare requested CPU and memory first, then billed node hours and compute cost for comparable traffic. If requests fall while the same nodes keep running, record the extra room available for workloads. Count a cash saving once it appears in the bill, and check service targets over the same period.

Frequently asked questions

Can we keep a CPU-based HPA while trialling VPA?

Yes. VPA in Off mode calculates recommendations without applying them. Before enabling automatic CPU request changes, review any HPA utilisation target that uses those requests as its denominator.

Should we copy the target of 500 connections per pod?

Salesforce used roughly that target for its Istio proxies. Choose a target for your service by testing how many connections one ready pod can handle within its latency target, including while a neighbouring pod restarts.

Can Karpenter resolve a conflict between HPA and VPA?

Karpenter handles node capacity. A node provisioner can make room for more pods, but changing node capacity leaves the HPA’s utilisation calculation intact. Review the replica metric and the resource requests together.

← Back to the article library

Start with a conversation

Put your ideas into practice.

Tell us about your business and what you want to improve. We’ll help you find a sensible place to start.

Discuss Your Project