Lesson 6 of 8 Performance and Purpose-Built Data Stores

Matching High-Performance Storage to Access Patterns

This lesson explains the storage options that keep fast compute supplied with data: parallel throughput for HPC, very high IOPS for databases, or the lowest possible latency for scratch data.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the high-performance storage options.
  • Link FSx for Lustre to S3.
  • Match storage to access patterns.
  • Explain when the single-AZ availability trade-off is acceptable.

Storage options

Demanding workloads need storage matched to their access pattern. FSx for Lustre is a parallel file system delivering hundreds of gigabytes per second and millions of IOPS. It can be linked to an S3 bucket, so HPC and ML jobs read lake data at file system speed. EBS io2 Block Express volumes provide up to 256,000 IOPS each, with sub-millisecond latency, for databases. Instance store NVMe gives the lowest latency of all, but its data is lost when the instance stops, so it suits scratch space and replicated data.

S3 Express One Zone provides single-digit millisecond object access in one Availability Zone, for ML training and analytics. EFS with Elastic throughput scales automatically for shared files. FSx for OpenZFS and FSx for NetApp ONTAP provide low-latency NFS with caching, for shared workloads and media. The following table summarises the options.

StoragePerformance
FSx for LustreHundreds of GB/s and millions of IOPS, linked to an S3 data repository
EBS io2 Block ExpressUp to 256,000 IOPS per volume, sub-millisecond latency
Instance store NVMeLowest latency, ephemeral
S3 Express One ZoneSingle-digit millisecond object access in one AZ, for ML training and analytics
EFS Elastic throughputScales automatically for shared files
FSx for OpenZFS, FSx for NetApp ONTAPLow-latency NFS with caching, for shared workloads and media

FSx for Lustre with S3

FSx for Lustre is the standard choice for HPC and ML scratch and working data. A file system linked to an S3 bucket presents objects as files, loads them lazily on first access, and exports results back to S3. Scratch deployments suit short jobs at the lowest cost; persistent deployments replicate data within an AZ for longer-running work.

Matching storage to access patterns

Storage is chosen from the access pattern of each workload. Large sequential reads by many nodes at once, such as a simulation reading input data, suit FSx for Lustre, or S3 with many parallel byte-range requests. Small random reads and writes, such as a database's, suit EBS io2 Block Express, or gp3 with provisioned IOPS for less demanding cases.

Temporary data that can be recreated, such as intermediate results, belongs on instance store, which is the fastest option and costs nothing extra. Many small objects read repeatedly, as in machine learning training, suit S3 Express One Zone in the same Availability Zone as the compute, which reduces both latency and request cost.

The availability trade-off

Most of the fastest options live in one Availability Zone, and compute is placed beside them. This is an accepted trade-off for jobs that can be rerun, as long as the source data and results are kept durably in S3, which spans multiple Availability Zones.

Worked example

Feeding a simulation cluster from S3

The same CFD cluster reads meshes of several terabytes from S3 and writes large result files. Reading directly from S3 on every node would repeat the download for each job, so the cluster mounts an FSx for Lustre file system linked to the bucket:

SharedStorage:
  - Name: scratch
    StorageType: FsxLustre
    MountDir: /fsx
    FsxLustreSettings:
      DeploymentType: PERSISTENT_2
      StorageCapacity: 4800
      PerUnitStorageThroughput: 500
      DataRepositoryAssociations:
        - Name: meshes
          DataRepositoryPath: s3://acme-cfd-meshes
          FileSystemPath: /meshes
          AutoImportPolicy: [NEW, CHANGED]
          AutoExportPolicy: [NEW, CHANGED]

Objects appear as files and load lazily on first access, at hundreds of GB/s across the cluster, and results written under /meshes are exported back to S3 automatically. S3 remains the durable, multi-AZ copy, so the single-AZ file system can be deleted between campaigns to save cost. Node-local NVMe instance store holds temporary files that need the lowest latency and can be lost.

Check yourself

Why is a scratch FSx for Lustre file system cheaper but riskier than a persistent one?

Show answer

Scratch file systems do not replicate data, so a server failure can lose it. They suit temporary processing when the data is also kept in S3.

Exam Tips

Remember for the exam

  • For HPC and ML scratch storage linked to S3, use FSx for Lustre.
  • The fastest S3 access for ML training data is S3 Express One Zone.
  • The block storage with the highest IOPS is io2 Block Express.
  • The lowest-latency temporary storage is instance store.
  • Keep source data and results durably in S3 when using single-AZ high-performance storage.