Skip to Content

High performance computing (HPC)

The AWS services that help run HPC workloads - data transfer, EC2 instances and cluster placement groups, enhanced networking with ENA and the Elastic Fabric Adapter, high-IOPS storage like FSx for Lustre, and automation with AWS Batch, ParallelCluster and AWS PCS.

Why HPC in the cloud

  • The cloud is a great place for HPC: a very large number of resources can be created in no time.
  • Adding more resources speeds up time to results.
  • Billing covers only the systems in use.
  • Workloads: genomics, computational chemistry, financial risk modeling, weather prediction, machine learning, deep learning, autonomous driving.

Which services help? By job:

AWS services for high performance computing: transfer data with Direct Connect or DataSync; compute on CPU or GPU EC2 instances in a cluster placement group, with Spot, and an Elastic Fabric Adapter for MPI with OS-bypass on Linux; store data on FSx for Lustre or EBS io2 Block Express; automate with AWS Batch multi-node parallel jobs and AWS ParallelCluster or AWS PCS AWS services for high performance computing: transfer data with Direct Connect or DataSync; compute on CPU or GPU EC2 instances in a cluster placement group, with Spot, and an Elastic Fabric Adapter for MPI with OS-bypass on Linux; store data on FSx for Lustre or EBS io2 Block Express; automate with AWS Batch multi-node parallel jobs and AWS ParallelCluster or AWS PCS

Move the data, compute, store, automate.

Data management and transfer

  • AWS Direct Connect: move GB/s of data to the cloud over a private, secure network.
  • Snowball: move petabytes of data to the cloud offline.
  • AWS DataSync: move large amounts of data between on-premises and S3, EFS or FSx.

Updated since the slides

Snowmobile (the 100 PB truck) is no longer offered, and Snowball Edge is closed to new customers, with support ending on 31 December 2026. For offline transfers AWS now points to the AWS Data Transfer Terminal and partners. See large data transfers.

Compute and networking

  • EC2 instances: CPU optimized or GPU optimized (instance types); Spot Instances and Spot Fleets for cost savings, with Auto Scaling.
  • EC2 placement groups: a cluster placement group puts instances on the same rack in one AZ for the lowest latency and highest network throughput between them.
  • Enhanced networking (SR-IOV): higher bandwidth, higher packets per second (PPS), lower latency, at no extra cost.
    • Elastic Network Adapter (ENA): up to 100 Gbps; used by every Nitro instance.
    • Intel 82599 VF: up to 10 Gbps, on older instance types: legacy.
  • Elastic Fabric Adapter (EFA): an ENA with extra powers for HPC and machine learning.
    • Great for inter-node communication in tightly coupled workloads.
    • Uses the Message Passing Interface (MPI) standard (and NCCL for ML).
    • Bypasses the operating system (OS-bypass) to give low-latency, reliable transport.
    • The OS-bypass part works on Linux; on Windows an EFA acts as a plain ENA (except for media apps built with the AWS CDI SDK).

Storage

  • Instance-attached storage:
    • EBS: scales up to 256,000 IOPS with io2 Block Express.
    • Instance store: millions of IOPS, attached to the host, very low latency (data is lost when the instance stops).
  • Network storage:
    • Amazon S3: large objects, but not a file system.
    • Amazon EFS: IOPS scale with the throughput mode (elastic or provisioned).
    • FSx for Lustre: an HPC-optimized distributed file system with millions of IOPS, linked to S3.

Automation and orchestration

  • AWS Batch: supports multi-node parallel jobs, so one job can span several EC2 instances; it schedules jobs and launches instances automatically.
  • AWS ParallelCluster: an open-source, AWS-supported cluster management tool to deploy HPC on AWS.
    • Configured with text files.
    • Automates the creation of the VPC, subnets, cluster type and instance types.
    • Can turn on EFA on the cluster for better network performance.

Updated since the slides

AWS now recommends AWS Parallel Computing Service (AWS PCS), a managed Slurm service, for new HPC clusters; ParallelCluster is still supported but is self-managed. ParallelCluster dropped AWS Batch as a scheduler from version 3.16 (Slurm remains).

Real-world examples

  • A weather agency runs a forecast model on 200 hpc7a instances with EFA in a cluster placement group, reads input from FSx for Lustre linked to an S3 bucket, and deletes the cluster when the run ends.

Exam tips

  • "Tightly coupled HPC, MPI, lowest latency between nodes" → EFA + cluster placement group.
  • "High-performance file system for HPC, data in S3" → FSx for Lustre.
  • "Enhanced networking, up to 100 Gbps" → ENA.
  • "Run batch jobs across many instances" → AWS Batch (multi-node parallel jobs).
  • "Deploy and manage an HPC cluster with a scheduler" → ParallelCluster (or AWS PCS for a managed Slurm).

Common traps

  • "EFA works the same on Windows." OS-bypass is for Linux.
  • "Spread placement group for HPC." Spread is for availability; HPC wants cluster.
  • "Use EFS for the highest HPC throughput." FSx for Lustre is the HPC file system.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt