Instances›AWS EC2›t4g›t4g.medium
Compute
vCPUs2
Memory4 GiB
Mem / vCPU2.00 GiB
ProcessorGraviton2 Processor
Clock speed2.5 GHz
Architecturearm64
Storage
TypeEBS only
Bandwidth2,085 Mbps
Throughput260.625 MB/s
IOPS11,800
Networking
PerformanceUp to 5 Gigabit
Max ENIs3
IPv6Yes
GPUNone
Family sizes
t4g.nano2 vCPU · 0.5 GiB
t4g.micro2 vCPU · 1 GiB
t4g.small2 vCPU · 2 GiB
t4g.medium2 vCPU · 4 GiB
t4g.large2 vCPU · 8 GiB
t4g.xlarge4 vCPU · 16 GiB
t4g.2xlarge8 vCPU · 32 GiB
t4g.medium

The t4g.medium is a general-purpose AWS EC2 instance: 2 vCPU and 4 GiB of memory, 2.00 GiB per vCPU. In the name, "t" is burstable, "4" is the generation, "g" marks AWS Graviton (ARM) processors and "medium" is the size within the t4g family. It runs on AWS Graviton2 Processor at 2.5 GHz, and AWS introduced it in September 2020. AWS has since shipped t8i; t8i.medium is the direct replacement at this size. Rackspace Spot's gp.vs1.medium is a like-for-like substitute at 2 vCPU and 4 GiB, about 94% below the US East (N. Virginia) on-demand rate.

Match qualityx86 substitution

t4g.medium is Graviton (arm64). Rackspace Spot does not have arm64 servers, so gp.vs1.medium is an x86_64 substitute with similar specs.

You will need x86 builds of your container images. Most software rebuilds without changes, but anything with compiled native code needs a real rebuild rather than a retag. Speed per core also differs between the two chips, so it is worth testing before deciding how many nodes to run.

Pricing by region
1 hr
RegionAWS on-demandAWS Spot1-yr Reserved3-yr ReservedRackspace SpotYou save
US East, N. Virginia$0.034$0.015$0.021$0.015$0.002
$0.032 savings
US Central, Chicagono AWS region$0.016
US Central, Dallasno AWS region$0.006
Hong Kong$0.046$0.029$0.020$0.002
$0.044 savings
Sydney, Australia$0.042$0.017$0.027$0.018$0.006
$0.036 savings
London, UK$0.038$0.010$0.024$0.016$0.041
US West, San Jose$0.040$0.015$0.025$0.017$0.011
$0.029 savings
US Central, Dallas 2no AWS region$0.021
US East, N. Virginia 2$0.034$0.015$0.021$0.015$0.011
$0.023 savings
When to use it
Good for
  • ●Backend services with no single dominant resource
  • ●Queue workers and scheduled jobs
  • ●Web and application servers with mixed CPU and memory demand
  • ●Workloads that fit inside 4 GiB of RAM
  • ●Small, steady services that do not need more than 2 vCPU
  • ●Network-heavy services — AWS rates this size at Up to 5 Gigabit
Avoid if
  • ●The working set needs more than 4 GiB of RAM
  • ●You cannot rebuild x86-only binaries or vendor images for aarch64
  • ●More than 2.00 GiB of RAM per vCPU is needed — that ratio is fixed for the whole family
  • ●Local NVMe or instance-store disk is a hard requirement
  • ●GPU or FPGA acceleration is needed
  • ●Sustained full-core CPU load. A compute-optimized family costs less per unit of work.
$25/mo on AWS on-demand against $1/mo on Rackspace Spot for the equivalent — market-priced, not list-priced.
  • Spot sells spare capacity at market prices. It is the cheapest compute on the internet.
  • Prices are set by supply and demand. You pay what the market decides.
  • Compute is delivered as fully managed Kubernetes. All infrastructure is taken care of.
  • Egress costs $0.01/GB after the free allowance. AWS charges $0.09/GB.
Build your Cloudspace
Frequently asked questions