Disk-heavy services slowed down gradually over a day; CloudWatch shows `BurstBalance` at 0 on a gp2 volume.
IntermediateTroubleshootingLatency
Answer
Likely causes → gp2 volumes earn IOPS from size (3 IOPS/GiB) and burst to 3,000 using credits. Sustained load drained the credits and the volume fell to its baseline.
Diagnose →
aws cloudwatch get-metric-statistics --namespace AWS/EBS --metric-name BurstBalance \
--dimensions Name=VolumeId,Value=$VOL --statistics Minimum --period 300 \
--start-time $(date -u -d '-1 day' +%FT%TZ) --end-time $(date -u +%FT%TZ)
iostat -x 1 5 # high await, %util near 100
Fix → Migrate the volume to gp3 online (aws ec2 modify-volume --volume-type gp3 --iops 6000), which gives baseline 3,000 IOPS without credits.
Prevent → Standardize on gp3, and alarm on BurstBalance < 20 for any remaining gp2 volumes.
More on Latency
p99 latency jumped from 200 ms to 3 s right after a deploy; error rate is flat.BeginnerThe API is slow, the database shows 100% CPU, and the slow query log is full of one query doing a sequential scan.BeginnerA JVM service has latency spikes every 30–60 seconds; GC logs show "Pause Full (G1 Compaction Pause)" taking 4 seconds.IntermediateThe first request after idle takes 5 seconds; Lambda logs show "Init Duration: 4512.33 ms".BeginnerLatency grows with traffic and logs show "QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00".IntermediateA container uses only 40% of its CPU limit on average, yet latency is high; `container_cpu_cfs_throttled_periods_total` keeps rising.Advanced