Ec2 ebs
#ec2 #ebs #aws
EBS
EBS is Elastic Block Store, and it is the network drive and it can be attached to the instance while they run
Specifications:
- Persist data even if the instance is terminated.
- Bound and locked to one AZ. Solution to change AZ is snapshotting it.
- It’s like a network USB stick
- Have a provision capacity (IOPS, size in GBs)
- Have a option to control EBS to be deleted when the instance is terminated.
EBS Snapshot Features:
- Archive snapshot, and take time to restore it, archive tier is 75% cheaper
- Recycle Bin to delete a snapshot. Can setup rule to retain it if deletion by accident.
- Fast snapshot recovery (Lot of money) for quick restore.
- EBS Snapshot for backup using IO so we should not run it while application is still running with high workload.
EBS Instance Types
- gp2/ gp3 ((( General Purpose ))): General purpose SSD, cost effective, and can be used for boot volume.
- For gp3: Independendly set the IOPS
- gp2: IOPS based on the size of volume. Increasing size of volume can perform increasing IOPS
- io1/ io2: ((( Provisioned IOPS SSD ))) for critial bussiness application, with more than 16000 IOPS. Great for database workload (high perf and consistency). It supports multi attach.
- st1 /sc1: (( HDD )): Cannot be boot volume: For big data (st1), and infrequently data access (sc1)
EBS Multi Attach (only for io1/io2 family of EBS)
- To attach one EBS volume to multiple instances in the (same AZ).
- Up to max 16 Instances at a time.
- Use cases: Application handling concurrent write operations, archive higher application availability in clustered application like Teradata.
Support encryption by using KMS
- Transparently, user have nothing to do, just config it.
- Minimal impact on latency
Exam
- Convert from gp2 to io1 can increase performance IOPS without increasing EBS size.