During a traffic spike, new instances fail to launch with "VcpuLimitExceeded". What happened, and how do you avoid it?
Situation read → You've hit an AWS service quota: the account's limit on running vCPUs for that instance family. Autoscaling asked for capacity and AWS refused.
What I'd do →
- Now: launch other instance families that still have quota (Karpenter does this automatically if the NodePool allows several families), and request a quota increase.
aws service-quotas get-service-quota --service-code ec2 --quota-code L-1216C47A
aws service-quotas request-service-quota-increase --service-code ec2 \
--quota-code L-1216C47A --desired-value 2000
(L-1216C47A is "Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances".) 2. Prevent: alarm on quota usage with CloudWatch (usage metrics are published for many quotas) at 80%. 3. Review quotas before planned events (sales, launches): EC2 vCPUs, EIPs, ALBs, NAT gateways, Lambda concurrency, and API rate limits. 4. Request quotas per region, including the DR region; increases are not instant.
Why → Quotas are invisible until you hit them, and they're hit exactly when you're scaling under pressure.
Interview tip → Mention checking quotas in the DR region; a failover can fail because the DR account has default limits.