Amazon Elastic Block Store (EBS) high-performance block storage service designed to be used with EC2 for both throughput and IOPS at any scale.
We can mount volumes as devices on EC2 instances. We can mount multiple EBS volumes to one EC2 instance but you can’t mount one EBS Volume to multiple EC2 instances.
EBS are of 5 types:
- General Purpose SSD (gp2) :
We can use EBS General Purpose SSD (gp2) if IOPS is important and IOPS < 80000 but IOPS > 16000 is required and latency > 1ms is okay and the cost is important. This EBS Volume is suitable in most cases.
System boot volumes
- Provisioned IOPS SSD (io1) :
We can use EBS provisioned IOPS (io1) if IOPS is important and IOPS < 80000 but IOPS > 16000 is required and latency > 1ms is okay and also performance is more important than cost.
Large database workloads (MongoDB)
- Throughput Optimized HDD (st1): We can use this when throughput is important than IOPS. This can’t be a boot volume. Mostly used for streaming workloads requiring consistent, fast throughput.
- Cold HDD (sc1): We can use this when throughput is important than IOPS but we can’t use this as a boot volume and is used for large volumes of data that is infrequently accessed. It is for the lowest storage cost.
Throughput-oriented storage for large volumes of data that is infrequently accessed
- Magnetic Volume — It is the previous generation HDD and used for workloads where data is infrequently accessed.