
From 15 to 10 Seconds: How EKS HPA Tuning Exposed a Hidden Scaling Bottleneck
This article explores how reducing the HPA synchronization interval from 15 to 10 seconds in a large-scale Amazon EKS environment increased reconciliation demand by 50%, exposing potential bottlenecks in Kubernetes API server performance and OPA Gatekeeper admission control. Drawing on an enterprise environment with 1,500 nodes, 35,000 Pods, and 1,200 HPAs, it examines why faster autoscaling decisions do not always translate into faster Pod creation and application readiness,.
Introduction
Over the years, I have seen infrastructure changes that looked perfectly reasonable during design reviews but delivered unexpected results in production.
Sometimes, the change itself isn't wrong. It simply exposes a bottleneck somewhere else.
HPA synchronization in Amazon EKS is one such scenario worth examining
The environment and the challenge
I had a quite a large enterprise EKS environment running 1,500 worker nodes, 35,000 Pods, and 1,200 Horizontal Pod Autoscalers for a pharma customer.The platform uses an EKS Provisioned Control Plane (XL), Kubernetes Metrics Server, and OPA Gatekeeper for admission security. Gatekeeper validates workload configurations against enterprise policies such as approved ECR registries, non-root execution, resource limits, and mandatory ownership labels.

The operational challenge was straightforward: during traffic spikes, applications were taking longer than expected to scale. Our investigation focused initially on the HPA controller within kube-controller-manager. HPA workqueue latency and metric computation duration helped us understand where reconciliation time was being spent.
The cluster was using the standard 15-second HPA synchronization interval. Using EKS Advanced Kubernetes Control Plane Configuration, we reduced the HPA synchronization interval from 15 seconds to 10 seconds while retaining the existing XL provisioned control-plane tier.”
With 1,200 HPAs, the theoretical reconciliation demand changes considerably:
HPA sync | Evaluations per second |
|---|---|
15 seconds | 80 |
10 seconds | 120 |
That's 50% more HPA reconciliation demand.
It doesn't translate directly into 50% more API requests or Pods, but it does increase how frequently the HPA controller attempts to evaluate workloads.
Initially, the results looked encouraging. Under normal load, HPA decisions could be made sooner, with less time waiting for the next evaluation cycle.
Then peak traffic arrived and the unexpected symptom Our team observed delay in Pod creation. Several applications needed additional replicas, but the new Pods were taking longer to appear—even though worker-node capacity was available (more than 40% of the free capacity available).
That distinction mattered.
If Pods already exist but remain Pending, we would investigate scheduling and resource constraints. Here, the concern was the time spent completing Pod CREATE requests.
We started with Kubernetes API server latency and followed the request path into admission Contr. OPA Gatekeeper was particularly relevant because every matching Pod CREATE request required security validation before the Pod could be persisted.
During simultaneous scale-out, admission concurrency can rise sharply. We learned that if the webhook capacity or policy evaluation performance is insufficient, Pod creation slows down. Pending PODs gone upto 3250 as depicted.
We examined two related paths.
1.HPA metrics path
HPA controller → kube-apiserver → Metrics Server. Reducing HPA sync increases reconciliation frequency and potentially the demand on metrics.k8s.io.
- We looked at HPA workqueue latency, Metrics API request rate, p99 response time, and API server errors.

Here, we focused on Pod CREATE p99 latency, Gatekeeper webhook duration, request concurrency, and CPU throttling.
The important distinction is that HPA metrics queries do not directly invoke Gatekeeper.
The potential connection is indirect: more frequent HPA decisions can concentrate scale-out activity, while increased Pod CREATE concurrency can expose an existing admission webhook capacity limitation.
To substantiate that connection, the measurements must show both increased Pod creation activity and deteriorating admission performance.
For this investigation, four KPIs matter most:
Component | KPI |
|---|---|
HPA controller | Workqueue p95 latency |
Metrics API | metrics.k8s.io p99 latency |
Kubernetes API server | Pod CREATE p99 latency |
OPA Gatekeeper | Admission webhook p99 latency |
HPA Controller | workqueue_depth{name="horizontalpodautoscaler"} |
EKS control plane metrics are available through the API server and controller-manager metrics endpoints. Kubernetes audit events can be investigated in CloudWatch under /aws/eks/<cluster-name>/cluster.
These measurements help distinguish a slow scaling decision from slow Pod admission or scheduling.
What would we change?
The immediate mitigation would be to restore the HPA synchronization interval to 15 seconds and compare the same metrics under equivalent workload conditions.
But reverting a setting is not a complete capacity strategy.
Before attempting the optimization again, I would review three areas:
- EKS control plane: Provisioned capacity tier, HPA reconciliation throughput, and API server latency.
- Metrics infrastructure: Metrics Server capacity, response time, and error rates.
- OPA Gatekeeper: Webhook replicas, CPU throttling, policy evaluation cost, and admission concurrency.
Increasing worker nodes would not resolve an admission bottleneck. Equally, increasing EKS control plane capacity would not automatically scale Gatekeeper.
Each component needs independent capacity planning.
The architectural lesson
We often measure autoscaling success by how quickly HPA changes the desired replica count. But applications don't serve traffic through desired replicas. They serve traffic through healthy, Ready Pods.
Between an HPA decision and a Ready Pod sit several components: workload controllers, the Kubernetes API server, admission webhooks, the scheduler, and application startup.
Optimizing one stage without considering the others can simply move the bottleneck.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article