Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon EC2 with or without EBS? [closed]

Still reading up on AWS. Amazon Large Instances comes with 850GB local storage. However, i read in case of failover and we want to power up another instance, we can just mount a EBS volume on it and start running right? That will mean that we have to configure and store it on a EBS volume to enjoy this capability. Does that mean that with local storage, say if data are saved in local, we will not able to do it ? EBS is charged separately, the large local storage of 850GB might not be that advantageous ? Is EBS used normally for Webserver data or primary for MySQL for persistent data?

Anyone who has experience with AWS can have good inside on this? That will mean that most of the instances i pay for have to buy EBS to enjoy the switch over capability?

like image 644
flyclassic Avatar asked Jan 26 '12 03:01

flyclassic


People also ask

Does an EC2 instance need EBS?

EC2 instances support two types for block level storage: EC2 Instances can be launched using either Elastic Block Store (EBS) or Instance Store volume as root volumes and additional volumes.

What happens to EBS when EC2 stops?

When you stop an instance, we shut it down. We don't charge usage for a stopped instance, or data transfer fees, but we do charge for the storage for any Amazon EBS volumes. Each time you start a stopped instance we charge a minimum of one minute for usage. After one minute, we charge only for the seconds you use.

Why EBS is used with EC2?

Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes behave like raw, unformatted block devices. You can mount these volumes as devices on your instances.

When should I use EBS or instance?

The instance store is ideal for temporary storage, because the data stored in instance store volumes is not persistent through instance stops, terminations, or hardware failures. For data you want to retain longer, or if you want to encrypt the data, use Amazon Elastic Block Store (Amazon EBS) volumes instead.


1 Answers

I recommend you start out using EBS entirely. That means running an EBS boot AMI, and putting your data (web, database, etc) on a separate EBS volume (recommended) or even the EBS root volume. Here's an article I wrote that describes more details about why I feel this way for beginners:

http://alestic.com/2012/01/ec2-ebs-boot-recommended

The listed 850GB local storage is ephemeral, which means that it is at risk of being lost forever if you stop your instance, terminate your instance, or if the instance fails. It might be useful to use for things like a large /tmp but I recommend against using ephemeral storage for anything valuable.

Note also that the 850 GB is not in a single partition, is not all attached to the instance by default, and is not all formatted with a file system by default.

like image 129
Eric Hammond Avatar answered Oct 06 '22 01:10

Eric Hammond