Burst Credits (T-series CPU & gp2 IOPS)
Your "2 vCPU" Instance Isn't 2 vCPUs
Cloud infrastructurecloud infrastructure / compute & cost
The myth
"t3.medium has 2 vCPUs. My service averages ~1 core, so I've got headroom."
Actually
On burstable instances the vCPU count is a ceiling, not an allowance. What you actually own is a baseline percentage plus a prepaid credit bucket. t3.medium baseline = 20% per vCPU = 0.4 vCPU sustained. Everything above that is spent, not owned.
The mental model
- Earn: 24 credits/hour (t3.medium)
- 1 credit = 1 vCPU-minute at 100%
- Bucket cap = 576 credits (24h of earnings)
Pin both vCPUs at 100% → you burn 120 credits/hour while earning 24. Net drain 96/hr, so a full bucket lasts ~6 hours. Then you hit the wall.
Two very different walls
- Unlimited mode (T3/T4g default): you do NOT slow down — you get billed surplus credits, ~$0.05 per vCPU-hour. The bill grows silently; no alarm fires.
- Standard mode (T2 default): you get throttled to baseline. 0.4 vCPU. p99 goes 80ms → 4s, and the CPU graph flat-lines at exactly 20%, which looks healthy if you alarm on "CPU > 80%".
That flat top at a suspiciously round number is the tell.
Check it, don't guess
aws cloudwatch get-metric-statistics \
--namespace AWS/EC2 --metric-name CPUCreditBalance \
--dimensions Name=InstanceId,Value=i-0abc123 \
--period 300 --statistics Minimum \
--start-time 2026-10-19T00:00:00Z --end-time 2026-10-26T00:00:00Z
Alarm on CPUCreditBalance falling and CPUSurplusCreditsCharged > 0 — not on CPUUtilization alone.
The same trap lives on your disks
gp2 volumes under 1000 GiB get 3 IOPS/GiB baseline and burst to 3000 from a credit bucket. Drain it on a 100 GiB volume and you fall to 300 IOPS. Your "slow query" is a starved disk, and EXPLAIN will never tell you.
gp3 has no credit bucket: flat 3000 IOPS baseline, provisioned independently of size. gp2 → gp3 is usually cheaper AND removes the cliff entirely.
When burstable is actually right
Good: idle most of the time with spikes — dev boxes, cron runners, CI agents, low-traffic internal APIs.
Bad: anything with steady load. A web server averaging 40% CPU is above baseline 24/7; it will either throttle or quietly out-cost the m-class instance you were avoiding.
Rule of thumb: if average CPU > baseline%, you bought the wrong instance family.
Your exercise
Pick one t-series instance you run. Compute its baseline (t3.micro 10%, small 20%, medium 20%, large 30%) and compare against its 7-day average CPUUtilization. If average > baseline, make the call: move to m7g/c7g, or consciously accept unlimited billing?
Then pull CPUSurplusCreditsCharged for last month. You may already be paying for a decision you never made.