Storage
D2 · Resilient
D3 · Performance
D4 · Cost
~1 phút đọc

Block & File storage: EBS, EFS, FSx

Phân biệt block (EBS, Instance Store), file (EFS, FSx) và khi nào dùng loại nào.

ebs
efs
fsx
instance-store

Sơ đồ tổng quan

Đang tải sơ đồ…

EBS — Block storage

  • Volume gắn trong 1 AZ, tồn tại độc lập instance.
  • gp3 (default, SSD, IOPS/throughput cấu hình riêng), gp2 (legacy), io2/io2 Block Express (high IOPS, mission-critical DB), st1 (HDD throughput), sc1 (cold HDD).
  • Snapshot lưu ở S3, incremental, có thể copy cross-region/account, tạo AMI.
  • EBS Multi-Attach: io1/io2 gắn vào nhiều Nitro instance trong cùng AZ (cluster software).
  • Encryption ở rest (KMS) — bật ở region level cho mặc định.

Instance Store

  • Ephemeral NVMe trên host. Tốc độ cực cao nhưng mất khi stop/terminate/fail host.
  • Dùng cho cache, buffer, data có thể tái tạo.

EFS — Managed NFS

  • Multi-AZ, POSIX, mount NFSv4 từ Linux EC2, Lambda (VPC), ECS, EKS.
  • Performance modes: General Purpose (default), Max I/O (nhiều client).
  • Throughput: Bursting, Provisioned, hoặc Elastic (khuyến nghị).
  • Storage class: Standard & IA; Lifecycle rule chuyển file sang IA nếu không access.

FSx — High-performance file systems

  • FSx for Windows File Server: SMB, AD integration — thay file server Windows.
  • FSx for Lustre: HPC, ML training — integrate S3 native (data repository).
  • FSx for NetApp ONTAP: multi-protocol NFS/SMB/iSCSI, snapshots, dedup, cloud tiering.
  • FSx for OpenZFS: ZFS features (clone, snapshot), NFS.
Info
Câu hỏi 'share file giữa nhiều Linux EC2 ở nhiều AZ' → EFS. 'Windows shared drive' → FSx for Windows. 'HPC ML' → FSx for Lustre.
Nội dung liên quan