Search

EBS vs EFS vs Instance Store

Note

•
EBS
â—¦
One instance & locked in one AZ
â—¦
Snapshot to migrate across AZ
â—¦
Backups use IO
•
EFS
â—¦
Multi-connection across AZ
â—¦
Only for Linux Instances (POSIX)
â—¦
Higher price point than EBS
•
EC2 Instance Store
â—¦
Physically attached
â—¦
Ephemeral Storage

EBS

•
EBS volumes…
â—¦
One instance (except multi-attach io1 / io2)
â—¦
Are locked at the Availability Zone (AZ) level
â—¦
gp2: IO increases if the disk size increases
â—¦
io1: can increase IO independently
•
To migrate an EBS volume across AZ
â—¦
Take a snapshot
â—¦
Restore the snapshot to another AZ
â—¦
EBS backups use IO and you shouldn’t run them while your application is handling a lot of traffic
•
Root EBS volumes of instances get terminated by default if the EC2 instance gets terminated. (Can disable this feature)

EFS

•
Mounting 100s of instances across AZ
•
EFS share website files (WordPress)
•
Only for Linux Instances (POSIX)
•
EFS has a higher price point than EBS
•
Can leverage EFS-IA for cost savings

EC2 Instance Store

•
Physically attached to the instances
•
Will lose storage if instance is lost

Reference