Step Two: Move Web Servers and Backend Servers to EC2 Cloud Computing

The Web Servers
Moving your Web servers to EC2 is fairly simple. You can set up EC2 images that are configured exactly the same way your current Web servers are.

Cloudberry Explorer for Amazon S3.

Cloudberry Explorer for Amazon S3.

Cloudberry feature comparison.

Cloudberry feature comparison.

EC2 instances are virtual private servers that have some risk associated with them; if they crash, you can lose your data if you haven’t made appropriate provisions. Since you are building an architecture on a transient system, you are forced to think about flexibility, backups, and adaptability early in the development cycle. Amazon Elastic Block Store (EBS) provides block level storage volumes for use with Amazon EC2 instances. Amazon EBS volumes are off-instance storage that persists independently from the life of an instance.

Amazon Elastic Block Store provides highly available, highly reliable storage volumes that can be attached to a running Amazon EC2 instance and exposed as a device within the instance. Amazon EBS is particularly suited for applications that require a database, file system, or access to raw block level storage.

Let’s do it.
Go to the Amazon EC2 Console Dashboard. The screen should look something like the screenshot.

Amazon EC2 Console Dashboard.

Amazon EC2 Console Dashboard.

AWS Request Instances Wizard—1.

AWS Request Instances Wizard—1.

Request Instances Wizard.

Click the Launch Instance Button.

Choose an Amazon Machine Image (AMI) We will select the LAMP Web Starter, a common image, of free, open source software, originally coined from the first letters of Linux (Amazon EC2 Console Dashboard. Demystifying the Cloud: A Case Study Using Amazon’s Cloud Services (AWS) 133 system), Apache HTTP Server, MySQL(database software), and PHP, Python, or Perl (scripting language)by clicking Select.

Next, we select the number of instances (easily changed), the availability zone (we will choose us-east-1a), and the type of instance we need .

A default “small instance” of EC2 provides:

  • 1.7 GB memory
  • 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition)
  • 32-bit platform
  • I/O Performance: Moderate
  • API name: m1.small

A large range of other instances can be selected to scale from this basic configuration. These provide more memory, more compute power, a 64-bit platform, enhanced I/O performance, and the like.

You can use a preconfigured software configuration running Linux, Windows, Sun or almost anything else. On-demand servers are available in three sizes, seven configurations, and with the operating system of your choice.

In addition to providing the flexibility to easily choose the number, the size and the configuration of the compute instances you need for your application, Amazon EC2 providesthree different purchasing models that give you the flexibility to optimize your costs.

  • On-Demand Instances allow you to pay a fixed rate by the hour with no commitment
  • Reserved Instances allow you to pay a one-time fee and in turn receive a significant discount on the hourly usage charge for that instance
  • Spot Instances enable you to bid whatever price you want for instance capacity, providing for even greater savings if your applications have flexible start and end times.

We will choose a Small instance and click Continue Next, select Advanced Instance Options. In this example, we can live with the defaults, so we just click Continue.

Next, we enter a name for the key pair identifying this instance, and click to create the key pair .

Advanced Instance Options.

Advanced Instance Options.

Create a key pair.

Create a key pair.

The key pair is created and downloaded to an encrypted file called a PEM file. It should be stored in a safe place. We can configure the firewall (port access) or use the default. We will accept the default. A review screen shows us the results of our handiwork.

Review of Instance Characteristics

Review of Instance Characteristics

Press Launch, and it’s done.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Cloud Computing Topics