Back to all scenarios
Scenario #46
Cluster Management
K8s v1.21, GKE with Horizontal Pod Autoscaler (HPA)

Insufficient Resource Limits in Autoscaling Setup

Horizontal Pod Autoscaler did not scale pods up as expected due to insufficient resource limits.

Find this helpful?
What Happened

The Horizontal Pod Autoscaler failed to scale the application pods up, even under load, due to insufficient resource limits set on the pods.

Diagnosis Steps
  • 1Observed HPA metrics showing no scaling action.
  • 2Checked pod resource requests and limits.
Root Cause

Resource limits were too low for HPA to trigger scaling actions.

Fix/Workaround
• Increased resource requests and limits for the affected pods.
• Manually scaled the pods and monitored the autoscaling behavior.
Lessons Learned

Proper resource limits are essential for autoscaling to function correctly.

How to Avoid
  • 1Set adequate resource requests and limits for workloads managed by HPA.
  • 2Monitor autoscaling events to identify under-scaling issues.