Skip to the workspace
Pebellslearn by building
EC2 — Virtual Servers  ›  Lesson

Instance Types and CPU Credits

Instance Types 15 minAn EC2 instance type name encodes its family, generation, options and size, and burstable T instances run on CPU credits earned below a baseline and spent above it.

aws / Instance Types and CPU Credits

Explore each scene at your own pace.

01 · The rule

The rule

Instance Types and CPU Credits

Inkwell is about to launch its first EC2 server and meets a drop-down with hundreds of options: t3.micro, m7g.large, c7i.2xlarge, r6i.xlarge. Picking at random either wastes money or starves the shop of power. The names look like noise, but every one follows the same pattern.

The rule

Read the name left to right: family, generation, options, size.

Take m7g.large:

  • m, the family: what the machine is balanced for. t is burstable general purpose, m is balanced general purpose, c is compute-optimised (more CPU per GB of memory), r is memory-optimised, i is storage-optimised, and families such as g and p carry GPUs.
  • 7, the generation: higher is newer, and usually better value.
  • g, the options: extra letters describe the processor or features. Here g means AWS's own Graviton (Arm) chip; i means Intel, a means AMD, and d adds fast local disks.
  • large, the size: sizes step up micro, small, medium, large, xlarge, 2xlarge and beyond, and from large upwards each step roughly doubles CPU and memory. An m7g.large has 2 vCPUs and 8 GiB; an m7g.xlarge has 4 vCPUs and 16 GiB.

The T family has a twist: CPU credits. A T instance has a baseline, a share of CPU it can use all the time. Below the baseline it earns credits; above it, it spends them. One credit is one vCPU at 100% for one minute. A t3.micro has 2 vCPUs, a baseline of 10% each, and earns 12 credits per hour.

When credits run out, standard mode throttles the instance back to its baseline. Unlimited mode, the default for T3 and T4g, keeps bursting but bills you for the extra.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.