Amazon Elastic Compute Cloud

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

Amazon Elastic Compute Cloud (also known as "EC2") allows users to rent computers on which to run their own computer applications. EC2 allows scalable deployment of applications by providing a web service through which a user can boot an Amazon Machine Image to create a virtual machine instance containing any software desired.

A user can create, launch, and terminate server instances as needed, paying by the hour for active servers, hence the term "elastic". EC2 provides users with control over the geographical location of instances which allows for latency optimization and high levels of redundancy. For example, to minimize downtime, a user can set up server instances in multiple zones which are insulated from each other for most causes of failure such that one backs up the other.[1] provides EC2 as one of several web services marketed under the Amazon Web Services (AWS) brand.



Amazon announced a limited public beta of EC2 on August 25, 2006.[2] Access to EC2 was granted on a first come first served basis. Amazon added two new instance types (Large and Extra-Large) on October 16, 2007.[3] On May 29, 2008, two more types were added, High-CPU Medium and High-CPU Extra Large.[4] There are currently seven types of instances available.

Amazon added three new features on March 27, 2008.[5] These features included static IP addresses, Availability Zones, and User Selectable Kernels. Amazon added Elastic Block Store (EBS) on August 20, 2008.[6] This provides persistent storage, a basic feature which had been lacking since the service was introduced.

Amazon EC2 is in full production since it dropped the beta label on October 23, 2008. On the same day, Amazon announced the following features:[7] a service level agreement for EC2, Microsoft Windows in beta form on EC2, Microsoft SQL Server in beta form on EC2, plans for an AWS management console, and plans for load balancing, autoscaling, and cloud monitoring services.[7] These features were subsequently added on May 18, 2009.[8]

Virtual machines

EC2 uses Xen virtualization. Each virtual machine, called an "instance", functions as a virtual private server in one of three sizes; small, large or extra large. sizes instances based on "EC2 Compute Units" — the equivalent CPU capacity of physical hardware. One EC2 Compute Unit equals 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor. The system offers the following instance types:

Small Instance
The small instance (default) equates to "a system with 1.7 GB of memory, 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit), 160 GB of instance storage, 32-bit platform"[9]
Large Instance
The large instance represents "a system with 7.5 GB of memory, 4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each), 850 GB of instance storage, 64-bit platform".
Extra Large Instance
The extra large instance offers the "equivalent of a system with 15 GB of memory, 8 EC2 Compute Units (4 virtual cores with 2 EC2 Compute Units each), 1690 GB of instance storage, 64-bit platform."
High-CPU Instance
Instances of this family have proportionally more CPU resources than memory (RAM) and address compute-intensive applications.
High-CPU Medium Instance
Instances of this family have the following configuration:
  • 1.7 GB of memory
  • 5 EC2 Compute Units (2 virtual cores with 2.5 EC2 Compute Units each)
  • 350 GB of instance storage
  • 32-bit platform
  • I/O Performance: Moderate
High-CPU Extra Large Instance
Instances of this family have the following configuration:
  • 7 GB of memory
  • 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute Units each)
  • 1690 GB of instance storage
  • 64-bit platform
  • I/O Performance: High


Amazon primarily charges customers in two ways:

  • Hourly charge per virtual machine
  • Data transfer charge

However there are additional charges for:

The hourly virtual machine rate is fixed, based on the capacity and features of the virtual machine. The performance of multiple identical virtual machines may however vary[10]. Amazon advertising describes the pricing scheme as "you pay for resources you consume," but defines resources such that an idle virtual machine is consuming resources, as opposed to other pricing schemes where one would pay for basic resources such as CPU time.

Customers can easily create/reboot virtual machines. Shutdown is not available but you can terminate your instance and create another one later, although in this case you will lose data. Unless backed up on Amazon S3, or on their network attached storage service EBS.

As of November 2009, Amazon charges $0.084/hour ($61/month) for the smallest "On-Demand" virtual machine without Windows and twelve times that for the largest one running Windows. "Reserved" instances can go as low as $31/month for a three-year prepaid plan.[11] The data transfer charge ranges from $0.08 to $0.15 per gigabyte, depending on the direction and monthly volume.

Amazon does not have monthly minimums or account maintenance charges.

Operating systems

When it launched in August 2006, the EC2 service offered Linux and later Sun Microsystems' OpenSolaris and Solaris Express Community Edition. In October 2008, EC2 added the Windows Server 2003 operating system to the list of available operating systems.[12][13]

Plans are in place for the Eucalyptus interface for the Amazon API to be packaged into the standard Ubuntu distribution.

Persistent Storage

A normal EC2 instance has no persistent storage. They have temporary storage, which remains consistent when an EC2 instance is rebooted, but when the instance is terminated -be it explicitly done so by an API call, or due to a failure of the infrastructure, this store is lost. For applications to retain data over time, persistent storage of one form or another is needed. This may be through one of Amazon's database services, or it may be through their two persistent storage options.

Simple Storage Service (S3) is a storage system in which data is accessible to EC2 instances, or directly over the network to suitably authenticated callers -all communication is over HTTP. Amazon does not charge for the bandwidth for communications between EC2 instances and S3 storage in the same region. Accessing S3 data stored in a different region (for example, data stored in Europe from a US East Coast EC2 instance) will be billed at Amazon's normal rates.

S3-based storage is low cost, as you only pay per gigabyte per month for data stored; unused space is not billed for. However, it does not look like classic, locally mounted file storage, and applications need to be written to use it directly. As an example of this Apache Hadoop supports a special s3: filesystem to support reading from and writing to S3 storage during a MapReduce job. There are also S3 filesystems for Linux, which mount a remote S3 filestore on an EC2 image, as if it were local storage. As S3 is not a full Posix filesystem, things may not behave the same as on a local disk -there is no locking, for example.

The other form of persistence is the Elastic Block Storage (EBS). Here users can set up and manage storage volumes of sizes from 1GB to 1TB. An EBS store can be mounted to a single EC2 instance at a time. When mounted, it appears as a local filesystem, with full Posix functionality. This makes it possible to use EBS as the store for databases and other applications, without their needing to be rewritten to work with the S3 filestore.

Automated Scaling

Amazon's Auto Scaling feature of EC2 allow you to automatically scale your Amazon EC2 capacity, both up and down. If traffic to your site spikes, Amazon Auto Scaling can automatically add more capacity to maintain performance. However, if your site traffic is low, Amazon Auto Scaling can ensure you don't have too much capacity, wasting money and resources. Amazon's Auto Scaling is well suited for sites that experience unpredictable traffic. Even if your site has consistent usage, Auto Scaling can help prevent down time from heavy traffic, due to being in the news. You can control costs by setting the minimum and maximum number of servers to run.

Features of Auto Scaling
  • Auto Scaling enables you to set conditions for when you want to scale up or down your Amazon EC2 usage. When one of the conditions is met, Auto Scaling automatically applies the action you’ve defined.
  • Auto Scaling enables your application to scale up Amazon EC2 instances seamlessly and automatically when demand spikes.
  • Auto Scaling allows you to automatically shed unneeded Amazon EC2 instances and save money when demand subsides.
  • Auto Scaling is free to Amazon CloudWatch customers.
  • If you’re signed up for the Amazon EC2 service, you’re already registered to use Auto Scaling and can begin using the feature via the Auto Scaling APIs or Command Line Tools.
  • Auto Scaling is available in the us-east-1 and the eu-west-1 Regions.

Elastic IP Addresses

Amazon's Elastic IP Address feature is similar to static IP address in traditional data centers, with one key difference. A user can programmatically map an Elastic IP Address to any virtual machine instance without a network administrator's help and without having to wait for DNS to propagate the new binding. In this sense an Elastic IP Address belongs to the account and not to a virtual machine instance. It exists until it is explicitly removed. If you want to mask instance and Availability Zone failures from your users then you would want to buy an Elastic IP Address and automatically manage its mapping to instances. IPv6 is not yet provided.

Amazon CloudWatch

Amazon CloudWatch is a web service that provides real-time monitoring to Amazon's EC2 customers on their resource utilization such as CPU,disk, network and memory. The data is aggregated and provided through AWS management console. It can also be accessed through command line tools and web API's if the customer desires to monitor their EC2 resources through their enterprise monitoring software.

The metrics collected by Amazon CloudWatch enables Auto Scaling feature to dynamically add or remove EC2 instances. The customers are charged by the number of monitoring instances.

Reserved Instances

Reserved instances enable EC2 service users to reserve an instance for one or three years. Although there is a fee associated with reserving an instance, the corresponding per hour rate charged by Amazon to operate the instance is much less than the rate charged for non-reserved instances.


In early July 2008 Outblaze and started to block Amazon's EC2 address-pool due to problems with the distribution of spam and malware.[14]


  1. LaMonica, Martin (March 27, 2008). "Amazon Web Services adds 'resiliency' to EC2 compute service". CNet News. Retrieved August 1, 2009. 
  2. Barr, Jeff (August 25, 2006). "Amazon EC2 Beta". Amazon Web Services Blog. Retrieved August 1, 2009. 
  3. Jinesh (October 16, 2007). "Amazon EC2 Gets More Muscle". 
  4. Barr, Jeff (May 29, 2008). "More EC2 power". Amazon Web Services Blog. Retrieved August 1, 2009. 
  5. Barr, Jeff (March 27, 2008). "New EC2 Features". Amazon Web Services Blog. Retrieved August 1, 2009. 
  6. Barr, Jeff (August 20, 2008). "Amazon EBS (Elastic Block Store) - Bring Us Your Data". Amazon Web Services Blog. Retrieved August 1, 2009. 
  7. 7.0 7.1 Barr, Jeff (August 23, 2008). "Big Day For EC2". Amazon Web Services Blog. Retrieved August 1, 2009. 
  8. Barr, Jeff (May 18, 2009). "New Features for EC2". Amazon Web Services Blog. Retrieved August 1, 2009. 
  9. "Amazon Elastic Compute Cloud (Amazon EC2)". July 31, 2009. Retrieved August 1, 2009. 
  10. J. Dejun, G. Pierre and C.-H. Chi. EC2 Performance Analysis for Resource Provisioning of Service-Oriented Applications. In Proceedings of the Workshop on Non-Functional Properties and SLA Management in Service-Oriented Computing, November 2009.
  12. Shankland, Stephen (October 23, 2008). "Amazon's Linux cloud computing out of beta, joined by Windows". CNet News. Retrieved October 24, 2008. 
  13. "Amazon Elastic Compute Cloud (EC2) Running Microsoft Windows Server and SQL Server". October 23, 2008. Retrieved October 25, 2008. 
  14. Krebs, Brian (July 1, 2008). "Amazon: Hey Spammers, Get Off My Cloud!". Washington Post. Retrieved August 1, 2009. 

See also

External links

fr:Amazon Elastic Compute Cloud

ja:Amazon EC2 ru:Amazon EC2 zh:Amazon EC2

Personal tools

Served in 0.743 secs.