Taking a look at EC2 storage options ! When to use InstanceStore/EBS/EFS?


For information about storage pricing, open AWS Pricing

Storage Options

Lets take a look at the what AWS has to offer.

Amazon EC2 provides you with flexible, cost effective, and easy-to-use data storage options for your instances. Each option has a unique combination of performance and durability. These storage options can be used independently or in combination to suit your requirements.

After reading this section, you should have a good understanding about how you can use the data storage options supported by Amazon EC2 to meet your specific requirements. These storage options include the following:

Amazon EBS

Amazon EBS provides durable, block-level storage volumes that you can attach to a running instance. You can use Amazon EBS as a primary storage device for data that requires frequent and granular updates. For example, Amazon EBS is the recommended storage option when you run a database on an instance.

Points to remember !!

  • in a single Availability Zones.
  • need to attach to only one EC2 at a time
  • need to be a Root Volume/ Boot Volume.
  • need to have IOPS up to 260,000
  • data need to be persisted after restart/termination.
  • when latency of milliseconds are not important
  • additional cost are to be incurred apart from ec2.
  • can be configured to be either deleted or not when ec2 terminates

Amazon EBS provides the following volume types

  • Solid state drives (SSD) — Optimized for transactional workloads involving frequent read/write operations with small I/O size, where the dominant performance attribute is IOPS. example : gp2/gp3,io2
  • Hard disk drives (HDD) — Optimized for large streaming workloads where the dominant performance attribute is throughput.
  • Previous generation — Hard disk drives that can be used for workloads with small datasets where data is accessed infrequently and performance is not of primary importance. (not talked about here)

mote at : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html

Amazon EC2 instance store

Many instances can access storage from disks that are physically attached to the host computer. This disk storage is referred to as instance store. Instance store provides temporary block-level storage for instances. The data on an instance store volume persists only during the life of the associated instance; if you stop, hibernate, or terminate an instance, any data on instance store volumes is lost.

Points to remember !!

  • Its a Temporary storage and is volatile.
  • All data are lost when the machine is restarted/terminated.
  • Its specific to Availability Zones.
  • It can be attached to only one EC2 at a time
  • It can be a Root Volume/ Boot Volume.
  • It can have IOPS up to 1.2 million
  • when latency on milliseconds are important
  • The instance type determines the size of the instance store available and the type of hardware used for the instance store volumes.
  • Instance store volumes are included as part of the instance’s usage cost. 

more at : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html

Amazon EFS file system

Amazon EFS provides scalable file storage for use with Amazon EC2. You can create an EFS file system and configure your instances to mount the file system. You can use an EFS file system as a common data source for workloads and applications running on multiple instances.

Points to remember !!

  • All data are Persists and can be shared among ec2.
  • Its specific to Region.
  • It can be attached to multiple EC2 at the same time
  • It cannot be a Root Volume/ Boot Volume.

Adding storage

Every time you launch an instance from an AMI, a root storage device is created for that instance. The root storage device contains all the information necessary to boot the instance. You can specify storage volumes in addition to the root device volume when you create an AMI or launch an instance using block device mapping. For more information, see Block device mappings.

You can also attach EBS volumes to a running instance. 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: