Back to all scenarios
Scenario #443
Scaling & Load
Kubernetes v1.25, Azure AKS

Unstable Load Balancing During Scaling Events

Load balancing issues surfaced during scaling, leading to uneven distribution of traffic.

Find this helpful?
What Happened

As new pods were scaled up, traffic was not distributed evenly across them, causing some pods to be overwhelmed while others were underutilized.

Diagnosis Steps
  • 1Investigated the load balancing configuration and found that the load balancer didn't adapt quickly to scaling changes.
  • 2Found that new pods were added to the backend pool but not evenly distributed.
Root Cause

Load balancer misconfiguration, leading to uneven traffic distribution during scale-up events.

Fix/Workaround
• Reconfigured the load balancer to rebalance traffic more efficiently after scaling events.
• Adjusted readiness and liveness probes to allow new pods to join the pool smoothly.
Lessons Learned

Load balancers must be configured to dynamically adjust during scaling events.

How to Avoid
  • 1Test and optimize load balancing settings in relation to pod scaling.
  • 2Use health checks to ensure new pods are properly integrated into the load balancing pool.