0% found this document useful (0 votes)
54 views8 pages

Overview of Amazon EC2 Services

This document provides an overview of Amazon EC2 and related services. It begins with an introduction to EC2 and definitions of key terms like elastic, compute, and cloud. It then outlines the steps to launch Windows and Linux instances on EC2. Additional sections explain how to set up a basic web server on a Linux instance, load balancing with Elastic Load Balancer, and auto scaling to dynamically scale the number of EC2 instances based on demand.

Uploaded by

Bhaskar kovvuru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views8 pages

Overview of Amazon EC2 Services

This document provides an overview of Amazon EC2 and related services. It begins with an introduction to EC2 and definitions of key terms like elastic, compute, and cloud. It then outlines the steps to launch Windows and Linux instances on EC2. Additional sections explain how to set up a basic web server on a Linux instance, load balancing with Elastic Load Balancer, and auto scaling to dynamically scale the number of EC2 instances based on demand.

Uploaded by

Bhaskar kovvuru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Introduction to EC2
  • Load Balancer
  • Auto Scaling

Index

 Introduction to EC2
 Operating Systems
 Importance of EC2
 Launching an Linux Instance
 Launching an Windows Instance
 Error Checks
 Accidental Termination
 Load Balancing
 Auto Scaling
EC2 – Elastic Cloud Compute

 EC2 stands for Elastic Compute Cloud and many people are gets confused with other way around as
Elastic Cloud Compute.
 Detailed word by word definition :-
 Elastic - Elasticity or flexibility to increase/decrease our server configuration like CPU core, RAM’s,
storage simultaneously or at different periods.
 Compute – Instances / Servers can be launched at a ‘n’ number of rate both same configuration or
different configuration simultaneously or at different intervals within few seconds.
 Cloud – since all the services or instances are being launched on a cloud platform.
 Here in EC2 we can use different names for our instances (computer, server, P.C. , machine, box,
laptop, instance) but in the end all are same.

Steps to Launch an EC2 Instance - Windows

Image
Steps to Launch an EC2 Instance - Linux
Image

Launching a Web Server (in a Linux instance)


 sudo su
 yum update -y
 yum install httpd -y
 cd /var/www/html
 cat > [Link]
 ourfirstwebserver (enter)
 ctrl d (to exit editing the document)
 service httpd restart
 chkconfig httpd on
Load Balancer
 Elastic Load Balancer automatically distributes incoming application traffic across multiple
applications, micro services, and containers hosted on Amazon EC2 instances.
 You can improve traffic distribution across your instances for example by using an Elastic
Load Balancer to take incoming traffic from users and spread that traffic over three
instances. If any of these three instances fail, ELB will automatically detect that and shift
the traffic to the remaining healthy instances. 
 There are 3 types of Load Balancers :- Classic, Network and Application Load Balancers

A sample ELB setup in AWS


Load Balancer Type

Difference Between CLB & ALB


Configuring Health Check

Auto-Scaling
 Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instances
available to handle the load for your application
 You create collections of EC2 instances, called Auto Scaling groups. You can specify the
minimum number of instances in each Auto Scaling group, and Amazon EC2 Auto Scaling
ensures that your group never goes below this size and similarly you can mention the
maximum size too.
 We have to setup a Load Balancer, create a Launch Configuration and setup an Auto scaling
Group for setting up our configuration.
Requirements to setup Auto Scaling Group
 3 Components are required to setup Auto Scaling Group
 Group – Your EC2 instances are organized into groups so that they can be treated as a
logical unit for the purposes of scaling and management. When you create a group, you
can specify its minimum, maximum, and, desired number of EC2 instances.
 Configuration Templates – We can specify information such as the AMI ID, instance type,
key pair, security groups, and block device mapping for your instances.
 Scaling Options – We can configure a group to scale based on the occurrence of specified
conditions (dynamic scaling) or on a schedule.

Auto Scaling Features

***End of Document***

Common questions

Powered by AI

Auto Scaling in AWS EC2 enhances application reliability by ensuring the right number of instances are available to handle traffic, automatically adjusting the group size based on specified conditions or schedules. It provides efficiency by organizing instances into groups for easier scaling and management, allowing users to define minimum, maximum, and desired numbers of instances. This proactive and automated approach reduces manual intervention and optimizes resource utilization .

Setting a minimum and maximum size for an Auto Scaling group in AWS EC2 establishes a range within which resources can adapt dynamically. The minimum size guarantees a baseline of operational instances, essential for continuity, while the maximum size sets a boundary to control costs. This setup allows applications to scale in response to varying loads, enhancing resilience by maintaining operational stability and availability even as demand fluctuates .

Amazon EC2, or Elastic Compute Cloud, distinguishes itself with high elasticity and compute options, allowing users to increase or decrease server configurations such as CPU, RAM, and storage simultaneously or separately. This flexibility supports launching a large number of instances with either identical or varied configurations in a matter of seconds, which caters to diverse computing needs efficiently .

Dynamic scaling in an Auto Scaling group adjusts resources in real-time based on specific conditions such as CPU usage or network traffic, providing immediate response to changing demands. Scheduled scaling pre-emptively increases or decreases resources at predetermined times, benefiting predictable workloads with known patterns. Dynamic scaling offers real-time adaptability, while scheduled scaling ensures resource availability for expected peaks, together enhancing operational flexibility and efficiency .

Configuration templates in an Auto Scaling group setup in AWS EC2 specify critical information such as the AMI ID, instance type, key pair, security groups, and block device mappings. These templates standardize and automate the setup process, ensuring consistency and reliability across instances. They facilitate rapid deployments and scaling operations by defining required configuration parameters, which ultimately streamline management and resource allocation .

Elasticity in AWS EC2 allows for dynamic scaling of resources, enabling users to adjust server configurations, such as CPU and memory, based on current demands. This flexibility optimizes performance by matching resource allocation with workload requirements, and it reduces costs by scaling down when demand drops. Such elasticity ensures efficient use of resources, minimizing waste and aligning expenditure with actual usage, thus enhancing both cost-effectiveness and performance .

To launch a Linux instance on EC2, follow these key steps: use 'sudo su' for administrative privileges, update the system with 'yum update -y', install Apache using 'yum install httpd -y', navigate to '/var/www/html', create a new index.html file, insert content using 'cat > index.html', and activate httpd service with 'service httpd restart' and 'chkconfig httpd on'. These steps highlight EC2's efficiency by simplifying the configuration of a web server environment, showcasing EC2's capability to quickly deploy applications on the cloud .

Amazon EC2's ability to automatically terminate and relaunch instances supports disaster recovery by quickly recovering from failures, ensuring continuous availability and reducing downtime. By detecting unresponsive instances and replacing them, EC2 maintains operational continuity, protecting against data loss and service disruption. This self-healing capability complements backup and replication strategies, offering a robust approach to maintaining business continuity in the face of unexpected challenges .

Elastic Load Balancers (ELB) increase scalability and high availability of applications on Amazon EC2 by distributing incoming traffic across multiple instances, ensuring no single instance becomes a bottleneck. If an instance fails, ELB redirects traffic to healthy instances, maintaining uninterrupted service. The different ELB types (Classic, Network, and Application) offer various features suitable for diverse application requirements, enhancing flexibility and adaptability in managing traffic .

AWS offers three types of Load Balancers: Classic Load Balancer (CLB), Network Load Balancer (NLB), and Application Load Balancer (ALB). CLB provides basic load balancing across multiple EC2 instances, suitable for simple applications. NLB handles large volumes of connections while maintaining ultra-low latency, ideal for real-time applications requiring high throughput. ALB enables advanced routing and targets specific requests based on factors like URL, best for modern microservices architectures and container-based applications .

Index

Introduction to EC2

Operating Systems

Importance of EC2

Launching an Linux Instance

Launching an Windows Inst
EC2 – Elastic Cloud Compute

EC2 stands for Elastic Compute Cloud and many people are gets confused with other way around as
Steps to Launch an EC2 Instance - Linux
Image
Launching a Web Server (in a Linux instance)

sudo su

yum update -y

yum in
Load Balancer

Elastic Load Balancer automatically distributes incoming application traffic across multiple 
applications, m
Load Balancer Type
Difference Between CLB & ALB
Configuring Health Check
Auto-Scaling

Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instance
Requirements to setup Auto Scaling Group

3 Components are required to setup Auto Scaling Group

Group – Your EC2 instances

You might also like