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