Instances›AWS EC2›r4›r4.large
Compute
vCPUs2
Memory15.25 GiB
Mem / vCPU7.63 GiB
ProcessorXeon E5-2686 v4
Clock speed2.3 GHz
Architecturex86_64
Storage
TypeEBS only
Bandwidth425 Mbps
Throughput53.125 MB/s
IOPS3,000
Networking
PerformanceUp to 10 Gigabit
Max ENIs3
IPv6Yes
GPUNone
Family sizes
r4.large2 vCPU · 15.25 GiB
r4.xlarge4 vCPU · 30.5 GiB
r4.2xlarge8 vCPU · 61 GiB
r4.4xlarge16 vCPU · 122 GiB
r4.8xlarge32 vCPU · 244 GiB
r4.16xlarge64 vCPU · 488 GiB
r4.large

The r4.large is a memory-optimized AWS EC2 instance: 2 vCPU and 15.25 GiB of memory, 7.63 GiB per vCPU. In the name, "r" stands for RAM, "4" is the generation and "large" is the size within the r4 family. It runs on Intel Xeon E5-2686 v4 (Broadwell) at 2.3 GHz, and AWS introduced it in November 2016. AWS has since shipped r5, r6i, r7i and r8i; r5.large is the direct replacement at this size, scoring 29,156 CoreMark/s against this instance's 26,099 — roughly 12% more throughput for the same vCPU count. Rackspace Spot's mh.vs1.medium is a like-for-like substitute at 2 vCPU and 16 GiB, about 92% below the US East (N. Virginia) on-demand rate.

Pricing by region
1 hr
RegionAWS on-demandAWS Spot1-yr Reserved3-yr ReservedRackspace SpotYou save
US East, N. Virginia$0.133$0.037$0.084$0.057$0.011
$0.122 savings
US Central, Chicagono AWS region$0.021
US Central, Dallasno AWS region$0.041
Hong Kong$0.002
Sydney, Australia$0.160$0.053$0.101$0.069$0.011
$0.149 savings
London, UK$0.156$0.045$0.099$0.067$0.011
$0.145 savings
US West, San Jose$0.148$0.042$0.093$0.064$0.031
$0.117 savings
US Central, Dallas 2no AWS region$0.031
When to use it
Good for
  • ●In-memory caches such as Redis and Memcached
  • ●Large JVM heaps and application servers that hold state
  • ●OLAP and business intelligence query engines
  • ●Workloads that fit inside 15.25 GiB of RAM
  • ●Small, steady services that do not need more than 2 vCPU
  • ●Network-heavy services — AWS rates this size at Up to 10 Gigabit
Avoid if
  • ●Starting a new deployment. r5.large is the newer generation at this size.
  • ●The working set needs more than 15.25 GiB of RAM
  • ●CPU-bound work. You are paying for memory this workload will not use.
  • ●More than 7.63 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
$97/mo on AWS on-demand against $8/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