AWS Builder Center
Avoiding AWS Control Plane Overload During EKS Upgrades: The 20% Roll Rate Strategy

Avoiding AWS Control Plane Overload During EKS Upgrades: The 20% Roll Rate Strategy

Helping customers upgrade EKS utilizing the best practices for success.

Introduction

Kubernetes upgrades are a necessary part of maintaining a healthy and secure container orchestration environment. However, when upgrading Amazon EKS (Elastic Kubernetes Service), one of the most common challenges organizations face is overwhelming the AWS Control Plane. This can lead to throttling, failed API calls, and potentially disruptive service degradation.

Understanding the AWS Control Plane Challenge

The AWS Control Plane is responsible for managing the state of your AWS resources. During an EKS upgrade, there's a significant increase in API calls as nodes are drained, terminated, and new nodes are provisioned and joined to the cluster. If too many nodes attempt these operations simultaneously, you can quickly hit AWS API rate limits.

What Happens When You Overwhelm the Control Plane?

When you exceed AWS Control Plane capacity during an EKS upgrade, several cascading issues can occur:

1. API Throttling and Rate Limiting

AWS automatically throttles API requests when they exceed predefined limits. This manifests as:
  •  ThrottlingException  errors in your logs
  • HTTP 429 "Too Many Requests" responses
  • Significantly increased API latency before complete failure

2. Failed Node Lifecycle Operations

With throttled API calls, critical node lifecycle operations fail:
  • Node termination requests are delayed or dropped
  • New node registration with the cluster fails
  • AutoScaling Group operations stall
  • EC2 instance state transitions become unpredictable

3. Workload Disruption

The ripple effects on your workloads can be severe:
  • Pods stuck in "Terminating" state as node draining operations fail
  • Application downtime as pods can't be rescheduled to new nodes
  • Service endpoints becoming unreliable as endpoint updates are delayed
  • Increased error rates as traffic routes to nodes in inconsistent states

4. Cluster State Inconsistency

Perhaps most concerning is the potential for cluster state inconsistency:
  • The EKS control plane and AWS resource state become out of sync
  • "Ghost nodes" that appear in Kubernetes but don't exist in EC2
  • Orphaned AWS resources that continue to incur costs
  • Persistent errors in cluster operations that require manual intervention

5. Prolonged Recovery Time

What started as a planned upgrade can turn into an extended outage:
  • Manual cleanup of stuck resources becomes necessary
  • Troubleshooting complex state inconsistencies takes time
  • Some issues may require AWS Support intervention
  • Complete cluster rebuild might be needed in extreme cases

Effects of Upgrading Everything at Once

When organizations attempt to upgrade all EKS nodes simultaneously, they often experience:

1. Massive API Burst Load

A 100-node cluster generating simultaneous termination, creation, and registration requests can generate thousands of API calls in minutes, far exceeding AWS service quotas.

2. Cascading Failures

As initial requests fail, automated retry mechanisms create an even larger backlog of requests, compounding the problem exponentially.

3. Extended Downtime

What was planned as a 1-hour upgrade can stretch into a 12+ hour firefighting session as operations teams struggle to stabilize the environment.

4. Data Loss Risk

In severe cases, stateful applications may experience data corruption or loss if persistent volumes can't be properly detached and reattached during the chaotic upgrade.

5. Real-World Disaster Scenario

One e-commerce company attempted to upgrade their 150-node production EKS cluster all at once during what they thought was a low-traffic period. The resulting Control Plane overload caused:
  • Complete failure of their checkout process for 4 hours
  • Loss of approximately $2.3 million in sales
  • Damage to customer trust and brand reputation
  • An emergency rollback that introduced additional data consistency issues

The 20% Roll Rate Solution

A proven strategy to mitigate Control Plane overload is implementing a controlled 20% roll rate during upgrades. Here's how to effectively implement this approach:

1. Calculate Your Safe Batch Size

If you have 100 nodes in your EKS cluster, a 20% roll rate means upgrading no more than 20 nodes at a time. This prevents overwhelming the Control Plane with simultaneous API requests.

2. Implement Proper Upgrade Waves

Rather than upgrading all node groups at once:
  • Divide your node groups into logical upgrade waves
  • Upgrade one wave at a time
  • Within each wave, limit concurrent node replacements to 20% of your total cluster size
  • Allow sufficient time between waves for system stabilization

3. Configure Your Node Groups Appropriately

When using managed node groups:

For self-managed nodes using tools like kOps or custom scripts, implement similar constraints to ensure no more than 20% of nodes are unavailable at any time.

4. Monitor API Throttling

During upgrades, actively monitor for AWS API throttling events:
  • Watch CloudWatch metrics for ThrottledRequests
  • Set up alarms for increased API error rates
  • Be prepared to pause the upgrade if throttling becomes excessive

5. Implement Exponential Backoff

For custom automation tools, implement exponential backoff and retry logic when interacting with the AWS API:


Best Practices Summary

  1. Calculate your safe concurrency: 20% of total cluster size
  1. Stagger node group upgrades: Don't upgrade all node groups simultaneously
  1. Implement proper draining procedures: Ensure pods have time to reschedule
  1. Monitor closely: Watch for throttling and be prepared to slow down
  1. Test in non-production first: Validate your approach before production upgrades

Conclusion

By implementing a controlled 20% roll rate during EKS upgrades, you can significantly reduce the risk of overwhelming the AWS Control Plane. This approach strikes a balance between upgrade speed and stability, ensuring your Kubernetes environment remains reliable even during major version changes.
Remember that the specific percentage may need adjustment based on your cluster size, node instance types, and workload characteristics. Some very large clusters may need to use even smaller percentages, while smaller clusters might safely use higher rates.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article