Elastic Cloud compute (EC2)

About EC2 :
Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Elastic Block Store (Amazon EBS ) provide the basic elements of compute and block-level storage to run your workloads on AWS. It focuses on key topis you need to understand for the exam, including:

– How instances types and Amazon Machine Images (AMIs ) define the capabilities of instances you launch on the cloud.
– How to protect your instances with virtual firewalls called security groups
– How to monitor and manage your instances on the cloud
– How to change the capabilities of an existing instances
– The payment options available for the best mix of affordability and flexibility
– How to protect your data on Amazon EBS
– What types of volumes are available through Amazon EBS
– How to securely access your instances running on the cloud
– How to create multiple environment of different servers
– How to control the scalability and durability
– How instances stores differ from Amazon EBS volumes and when they are effective

1. AMI’s Essentials:

  • A preconfigured package required to launch and EC2 instances;
    – Operating System
    – Software Packages
    – Network Settings
    – Virtualization’s
    – Installed License software
    – Other required packages and software
  • Amazon Machine Images are used with Auto Scaling to quickly launch new servers on demand and to quickly recover from disaster.
  • You can create your own AMI’s choose from a list of free AWS/community provide AMI’s or choose one from the marketplace.

AMI’s comes in three main categories:
– Community AMI’s
– Free to use
– Generally, with these AMI’s you are just selecting the OS you want
– AMS Marketplace AMI’s
– Pay to use
– Generally
– My AMI’s
– AMI’s that you crate yourself
– AMI’s that you configured for the requirement

 

2. EC2 AMI’s Virtualization:

  • Virtualization is the process of creating a “virtual” version of something rather than the actual version of that thing.
  • In AWS EC2, virtualization refers to using a “portion” of a server’s computing power and storage to setup and run an operating system.
  • Virtualization for EC2 is run using the Xen Hypervisor software.
  • The maintenance of the physical AWS server and the Xen Hypervisor is handled the AWS
  • Virtualization is used to increase the scalability.

 

PV AMI’s ( Paravirtual):

  • Guests can run on the host hardware that does not have explicit support for virtualization, but they cannot take advantage of special hardware extension such as enhanced networking or CPU processing.
  • Historically, PV guests had better performance than HVM guests in many cases. But because of enhancements in HVM virtualization and the availability of PV drivers for HVM AMI’s, this is no longer true.

 

3. Amazon Elastic Compute Cloud ( Amazon EC2):

Amazon EC2 is AWS primary web services that provide resizable compute capacity in the cloud.

 

Compute Basics

  • Compute Refers to the amount of computational power required to fulfil your workload. If your workload is very small, such as a website that receives few visitors, then your compute needs are very small.
  • Amazon EC2 allows you to acquire compute through the launching of virtual servers called instances. When you launch an instances, you can make use of the compute as you wish, just as you would with an on-premises server.

There are two concepts that they are to launching instances on AWS:

  • The amount of virtual hardware dedicated to the instances
  • The Software loaded on the instances.

These two dimensions of new instances are controlled, respectively,by the instance type and the AMI.

4. EC2 instances type:

  • Instances types describe the “hardware” components that an EC2 instances will run on:

– Compute power  ( processor/vCPU )

– Memory  ( RAM )

– Storage Options/optimized (hard drive)

– Network Performance (bandwidth)

  • As an architect, it’s important to use the proper instance type to handle your application’s workload.
  • There is a collection of preconfigured instance types that are grouped into families and types that you can choose from.

 

5. Sample Instances Type Families

 

C4  –   Computes optimized  – For workloads requiring significant processing

R3  –   Memory optimized     – For memory-instansive workloads

I2   –    Storage optimized      – For workloads requiring high amounts of fast SSD storage

G2  –  GPU – based instances  – Intended for graphics and general-purpose GPU compute workloads

 

There are four sources of AMIs:

  • Published by AWS
  • The AWS Marketplace
  • Generated from Existing Instances
  • Uploaded Virtual Servers

Post Author: Rohit

Leave a Reply

Your email address will not be published. Required fields are marked *