๐ŸŒŸ AWS CCP - Day-21 - Unleash EC2 Instance Store and Supercharge Your EC2 Performance! ๐ŸŒŸ

๐ŸŒŸ AWS CCP - Day-21 - Unleash EC2 Instance Store and Supercharge Your EC2 Performance! ๐ŸŒŸ


3 min read

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 TypeRead IOPSWrite IOPSVolume TypeMax IOPSLatencyDurabilityCostAvailabilityUse CasesScalabilityManagement Overhead
I3.xlarge3.3M1.4MInstance Store-LowLowerLowerLimited to Instance AvailabilityHigh-performance databases, caching, temporary storageLimited to the instance type, does not persist dataRequires data backup and replication for durability
GP2--EBS32,000MediumHighHigherHighly AvailableGeneral-purpose workloads, boot volumes, development/test environmentsScales dynamically with provisioned capacityRequires 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. ๐Ÿš€