๐ AWS CCP - Day-21 - Unleash EC2 Instance Store and Supercharge Your EC2 Performance! ๐
Introduction ๐ก
So you've seen a way to attach a network drive onto your EC2 Instances but they have limited performance and I told you with cause because it's a really good performance but sometimes you want something even higher performance and that is going to be a hardware disk attached onto your EC2 Instance. ๐ป
Understanding EC2 Instance Store ๐
So the EC2 Instance is a virtual machine but it is obviously attached to a real hardware server. And some of these servers do have disk space that is attached directly, you know, with a physical connection onto the server. And so a special type of EC2 Instance can leverage something called an EC2 Instance Store, which is the name of the hardware, the hard drive attached to the physical server. ๐ ๏ธ
Benefits of EC2 Instance Store ๐
So what you do with EC2 Instance Store, you use them for better I/O performance. You also make sure that they have good throughput and so on, so they're a great choice when you want to have extremely high disk performance. โก
Limitations of EC2 Instance Store ๐ซ
But the caveat is that if you stop or you terminate your EC2 Instance, that has an Instance Store, then the storage will be lost. And therefore it's called an ephemeral storage so that means that the EC2 Instance Store cannot be used as a durable long term place to store your data. ๐๏ธ
Use Cases ๐
So what is a good use case for it then? Well if you have a buffer, a cache, you want to have scratch data or temporary content, this would be a great place to do these things but not for long term storage. For long term storage, EBS for example is a great use case. ๐
Responsibilities and Considerations ๐ก๏ธ
Finally, in case the online server of your EC2 Instance does fail, then you'll risk to have a dear loss because the hardware attached to your EC2 Instance will fail as well. So if you do decide to use an EC2 Instance Store, then it is your entire responsibility to make sure that you back it up and that you replicate it correctly based on your needs. ๐
Performance Comparison ๐
So what I mean by better performance, this is just an example to illustrate it. If you look at for example, the Instance size of I3 dot something, there is an Instance Store attached to these kinds of instances and if you look at the Read IOPS and the Write IOPS which correspond to how many I/O operations you can do per second.
Instance Type | Read IOPS | Write IOPS | Volume Type | Max IOPS | Latency | Durability | Cost | Availability | Use Cases | Scalability | Management Overhead |
I3.xlarge | 3.3M | 1.4M | Instance Store | - | Low | Lower | Lower | Limited to Instance Availability | High-performance databases, caching, temporary storage | Limited to the instance type, does not persist data | Requires data backup and replication for durability |
GP2 | - | - | EBS | 32,000 | Medium | High | Higher | Highly Available | General-purpose workloads, boot volumes, development/test environments | Scales dynamically with provisioned capacity | Requires regular snapshotting and backup for data protection |
Then you can see at some of these random Read IOPS and Write IOPS can reach 3.3 million or 1.4 million, for the most performant one. And to put this in comparison with an EBS volume of type GP2 for example, you can reach thirty two thousand IOPS. So this is a lot more. But again, it's just to illustrate my point from an exam perspective anytime you see very high performance hardware attached volume for your EC2 Instances, think local EC2 Instance Store. ๐
Day-21 Finished ๐
Today you have learned about EC2 Instance Store. ๐