AWS Learning
Storage

Amazon FSx

Managed File Systems (Lustre, NetApp ONTAP, OpenZFS, Windows)

Tổng quan

Amazon FSx là dịch vụ fully managed file storage cho phép bạn khởi chạy và quản lý các hệ thống file phổ biến mà không cần provisioning hardware, cấu hình software, patching hoặc backup.

FSx cung cấp 4 loại file system khác nhau, mỗi loại tối ưu cho các use case riêng:

┌─────────────────────────────────────────────────────────────────┐
│                        Amazon FSx                               │
├────────────────┬────────────────┬────────────────┬──────────────┤
│  FSx for       │  FSx for       │  FSx for       │  FSx for     │
│  Lustre        │  NetApp ONTAP  │  OpenZFS       │  Windows     │
│                │                │                │  File Server │
├────────────────┼────────────────┼────────────────┼──────────────┤
│ HPC, ML, Video │ Enterprise NAS │ Linux workloads│ Windows apps │
│ Processing     │ Migration      │ ZFS migration  │ SMB shares   │
└────────────────┴────────────────┴────────────────┴──────────────┘

Chọn File System phù hợp

Storage hiện tạiNên chọn
Lustre hoặc parallel file systemsFSx for Lustre
NetApp ONTAP hoặc NAS appliancesFSx for NetApp ONTAP
ZFS hoặc Linux-based file serversFSx for OpenZFS
Microsoft Windows ServerFSx for Windows File Server

1. FSx for Lustre

Đặc điểm

  • High-performance parallel file system cho HPC, ML, video processing
  • Throughput lên đến 1000 GB/s, IOPS hàng triệu
  • Latency < 1 ms
  • Kích thước tối đa: Multiple PBs
  • Chỉ hỗ trợ Linux clients

Deployment Types

TypeMô tảUse case
ScratchTemporary storage, không replicate dataShort-term processing, cost-optimized
Persistent 1Longer-term storage, SSD/HDDWorkloads cần data persistence
Persistent 2Latest generation, higher IOPSLatency-sensitive workloads

Storage Classes

  • SSD: Low-latency, full dataset access
  • HDD: Cost-effective, consistent ms latency
  • Intelligent-Tiering: Tự động tier data theo access frequency

Tích hợp S3

  • Unique feature: Tự động import/export data từ/đến S3
  • Lazy loading: Chỉ load data khi cần
  • Phù hợp cho data lake và ML training
┌──────────────┐      Link      ┌──────────────┐
│   S3 Bucket  │◄──────────────►│ FSx Lustre   │
│  (Data Lake) │  Auto sync     │ (High Perf)  │
└──────────────┘                └──────────────┘
         │                              │
         │                              │
         ▼                              ▼
   Cold Storage                  Hot Processing
   (Archive)                     (EC2 Compute)

2. FSx for NetApp ONTAP

Đặc điểm

  • Enterprise-grade NAS với NetApp ONTAP software
  • Latency < 1 ms, throughput 72-80 GB/s
  • Kích thước: Virtually unlimited (10s of PBs)
  • Hỗ trợ SMB, NFS, iSCSI (shared block storage)
  • Multi-protocol access: Windows, Linux, macOS

Key Features

  • Snapshots & Cloning: Instant, space-efficient
  • Data Tiering: Tự động move cold data sang capacity pool (cost savings)
  • Data Deduplication & Compression
  • SnapMirror: Cross-region replication
  • FlexCache: On-premises caching, compute burst

Hybrid Cloud

┌─────────────────┐        SnapMirror        ┌─────────────────┐
│   On-premises   │◄────────────────────────►│  FSx ONTAP      │
│   NetApp        │    Replication           │  (AWS)          │
└─────────────────┘                          └─────────────────┘
        │                                            │
        │ FlexCache                                  │
        ▼                                            ▼
   Local Cache                              Multi-AZ/Single-AZ

Availability

  • Multi-AZ: 99.99% SLA
  • Single-AZ: 99.9% SLA

3. FSx for OpenZFS

Đặc điểm

  • Fully managed OpenZFS file system
  • Latency < 0.5 ms (thấp nhất trong các FSx)
  • Throughput 10-21 GB/s, IOPS 1-2 million
  • Kích thước tối đa: 512 TiB
  • Hỗ trợ NFS 3, 4.0, 4.1, 4.2

Key Features

  • Instant Cloning: Space-efficient clones
  • Snapshots: Point-in-time recovery
  • Data Compression: LZ4, ZSTD
  • Cross-region backups

Use Cases

  • Migrate ZFS-based workloads sang AWS
  • Linux application development/testing
  • Media processing pipelines
  • CI/CD environments (clone for testing)

Availability

  • Multi-AZ: 99.99% SLA
  • Single-AZ: 99.5% SLA

4. FSx for Windows File Server

Đặc điểm

  • Native Windows file system built on Windows Server
  • SMB protocol (2.0, 2.1, 3.0, 3.1.1)
  • Latency < 1 ms, throughput 12-20 GB/s
  • Kích thước tối đa: 64 TiB
  • Active Directory integration

Key Features

  • DFS Namespaces & Replication
  • Data Deduplication: Giảm storage costs
  • User Quotas: Giới hạn storage per user
  • Shadow Copies: End-user file restore
  • File Access Auditing

Deployment Types

TypeMô tảDowntime khi failure
Single-AZSingle file server, 1 AZ~30 phút
Multi-AZHA cluster, 2 AZs, auto failoverSeconds (transparent)

Storage Options

  • SSD: Low-latency workloads
  • HDD: Cost-optimized, infrequent access

Use Cases

  • Windows-based applications
  • SQL Server high availability (CA shares)
  • User home directories
  • Enterprise file shares
  • Amazon WorkSpaces, AppStream 2.0
┌─────────────────────────────────────────────────────┐
│                  Active Directory                   │
└─────────────────────────────────────────────────────┘


┌─────────────────────────────────────────────────────┐
│              FSx for Windows File Server            │
│  ┌─────────────────┐    ┌─────────────────┐         │
│  │  Primary (AZ1)  │◄──►│ Standby (AZ2)   │ Multi-AZ│
│  └─────────────────┘    └─────────────────┘         │
└─────────────────────────────────────────────────────┘
         │                         │
         ▼                         ▼
┌─────────────┐           ┌─────────────┐
│ EC2 Windows │           │ WorkSpaces  │
└─────────────┘           └─────────────┘

So sánh Performance

MetricLustreNetApp ONTAPOpenZFSWindows
Latency< 1 ms< 1 ms< 0.5 ms< 1 ms
Max Throughput1000 GB/s72-80 GB/s10-21 GB/s12-20 GB/s
Single Client Throughput150 GB/s18 GB/s10 GB/s20 GB/s
Max IOPSMillionsMillions1-2 million100s of K
Max SizeMultiple PBs10s of PBs512 TiB64 TiB

So sánh Protocols & Compatibility

FeatureLustreNetApp ONTAPOpenZFSWindows
Linux
Windows
macOS
SMB
NFS
iSCSI
S3 Integration

Availability SLA

File SystemMulti-AZSingle-AZ
NetApp ONTAP99.99%99.9%
OpenZFS99.99%99.5%
Windows99.99%99.5%
LustreN/A99.5%

Pricing Model

Tất cả FSx đều theo mô hình pay-as-you-go:

  • Không có minimum fees hoặc setup charges
  • Trả theo resources sử dụng

Chi phí phụ thuộc vào:

  • Storage capacity (GB-month)
  • Throughput capacity
  • Backup storage
  • Data transfer

Nguồn: Amazon FSx Pricing


Khi nào chọn FSx?

ScenarioRecommendation
HPC, ML training, video renderingFSx for Lustre
Migrate NetApp/NAS sang AWSFSx for NetApp ONTAP
Hybrid cloud với on-premises NetAppFSx for NetApp ONTAP
ZFS migration, Linux dev/testFSx for OpenZFS
Windows applications, AD integrationFSx for Windows
SQL Server HAFSx for Windows (Multi-AZ)
Lowest latency requirementFSx for OpenZFS
Highest throughput requirementFSx for Lustre

FSx vs EFS - Khi nào chọn cái nào?

EFSFSx
ProtocolNFS onlySMB, NFS, Lustre, iSCSI (tùy loại)
OSLinux onlyLinux, Windows, macOS
PerformanceTốt (~GB/s)Rất cao (lên đến 1000 GB/s với Lustre)
Use caseLinux shared storage đơn giảnWorkloads đặc thù, enterprise, HPC
Quản lýAWS native, đơn giảnGiữ features của file system gốc (AD, snapshots, dedup...)

Chọn EFS khi:

  • Chỉ cần NFS cho Linux EC2
  • Muốn đơn giản, không cần cấu hình nhiều

Chọn FSx khi:

  • Cần Windows/SMB → FSx Windows
  • Cần Active Directory integration → FSx Windows/ONTAP
  • Cần performance cực cao (ML, HPC, video) → FSx Lustre
  • Đang dùng NetApp/ZFS on-prem, muốn migrate → FSx ONTAP/OpenZFS

Tóm lại: EFS = NFS đơn giản cho Linux. FSx = file system chuyên dụng cho từng nhu cầu cụ thể.


So sánh với các Storage Services khác

FeatureFSxEBSEFSS3
TypeFileBlockFileObject
AccessMulti-instanceSingle instance*Multi-instanceAny
ProtocolSMB/NFS/LustreBlock deviceNFSHTTP/S3 API
Use caseShared file storageEC2 boot/data volumesLinux shared storageObject storage, backup
PerformanceVery highHighHighHigh (throughput)

*EBS Multi-Attach available cho io1/io2 với một số giới hạn


Tài liệu tham khảo