Ec2 (efs, instance store)
#ec2 #ebs #efs #instance_store #aws
EFS
It is NFS, network file system and can be mounted to multiple EC2 instances.
Specifications:
- Cross AZ
- Highly available, scalable, and more expensive than EBS, and pay per use
- Only compatible with Linux based AMI.
- Can be encryption using KMS
- POSIX file system (Linux)
- Scaling automatically
Use cases:
- Store content and data
EFS Scale:
- 1000s of concurrent NFS clients, 10G+ throughput
- Size is grown automatically
Performance mode (Set at creation time)
- General: latency sensitive (web server, CMS)
- Max I/O: highly paralell, highly latency (big data, data processing)
Throughput mode
- Busting: 1TB = 50MiB/s up to 100MiB/s
- Provisioned: Set throughput regardless of storage size. Fixed 1GiB/s per 1TB storage
- Elastic: Automatic scale throughput based on workload
Storage tier (lifecycle management feature - move file to IA after N days):
- Standard: for frequent accessed files
- Infrequent: for infrequent accessed files. (This tier is lower cost)
Availability & durability:
- Standard: Multi AZs, for prod
- One Zone: One Zone, For development, compatible with IA (Infrequent acess).
EC2 Instance Store
It is a ephemeral storage and it is attached directly to the instance, and it is hardware drive.
Specifications:
- High throughput, best I/O performance
- Good for buffer and temporary data
- Risk to lost data if the hardware fails.
- Backup and replication is the responsibility.
Exam
- Cannot detach instance store and attach it into another instance
- If the AMI is created, the instance store won’t be preserved.
- Instance store get reset when stopping, hibernating, terminating instance.