aws cloud lb as nikhil masur - compatibility mode › gupta › teaching › cs6030... ·...

7
10/2/19 1 Presented by Nikhil S Masur Under The Guidance of Mr. Ajay Gupta Professor Western Michigan University Introduction Elastic Load Balancing vDistributes Traffic across EC2 instances vProvides Flexibility and control to incoming requests. Amazon CloudWatch vMonitor Logs from Amazon Ec2 instances. Auto Scaling vScales EC2 instances UP or Down for the availability of your application depending on what conditions you set. q ELB automatically distributes Traffic across Ø Multiple Applications, Microservices and Containers hosted on EC2 instances. Ø Provides high availability by utilizing multiple availability zones. Elastic Load Balancing

Upload: others

Post on 28-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

1

Presented byNikhil S Masur

Under The Guidance ofMr. Ajay Gupta

ProfessorWestern Michigan University

Introduction

� Elastic Load BalancingvDistributes Traffic across EC2 instancesvProvides Flexibility and control to incoming requests.

� Amazon CloudWatchvMonitor Logs from Amazon Ec2 instances.

� Auto ScalingvScales EC2 instances UP or Down for the availability of your

application depending on what conditions you set.

q ELB automatically distributes Traffic acrossØ Multiple Applications, Microservices and Containers hosted on EC2

instances.Ø Provides high availability by utilizing multiple availability zones.

Elastic Load Balancing

Page 2: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

2

Types Of Load Balancers1. Internet-Facing Load Balancers

§ Takes request from the Clients over the Internet and distributes across Amazon Ec2 instances

2. Internal Load Balancers§ We can use internal load balancer to route traffic to Amazon EC2

instances within private subnets

3. Https Load Balancers§ Uses Transport layer Security(TLS) for encrypted connections§ Enables Traffic encryption between Load Balancer and End

instances

� Listeners§ Define the Protocol and Port on which Load Balancer listens for

incoming connections.§ Each Load Balancer needs atleast one listener to accept incoming traffic§ Routing rules are defined on Listeners

Page 3: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

3

FEATURES1. High availability

� Elastic Load Balancing automatically distributes traffic across multiple targets – Amazon EC2 instances, containers and IP addresses – in a single Availability Zone or multiple Availability Zones.

2. Security Features� Use Amazon Virtual Private Cloud (Amazon VPC) to create and manage

security groups associated with load balancers to provide additional networking and security options. You can also create an internal (non-internet-facing) load balancer.

3. Health Checks� It can detect unhealthy targets, stop sending traffic to them, and then spread

the load across the remaining healthy targets.

Ø Idle Connection Timeout• After the idle timeout period has elapsed, if no data has been sent or

received, the load balancer closes the connection.

Ø Cross-Zone Load Balancing� To ensure that traffic is routed evenly across all back-end instances for

your load balancer you should enable cross-zone load balancing on your load balancer.

Ø Connection Draining• Make sure load balancer stops sending requests to instances that are

deregistering or unhealthy.

Auto ScalingØ Automatic resizing of compute clusters based on demand.Ø Define when scaling out or scaling in occurs,

Ø Define Min and Max number of instances.Ø Uses metrics from Amazon Cloudwatch to perform Scaling.

Page 4: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

4

Types Of Auto Scaling1. Manual Scaling2. Maintain Current Instance Level3. Scheduled Scaling4. Dynamic Scaling

Components Of Auto ScalingØ Launch ConfigurationØ Auto Scaling GroupØ Scaling Plan Ø Amazon CloudWatch AlarmØ Elastic Load BalancerØ Instance Lifecycle

What can we do in Auto Scaling?ü In how many Availability Zones you want to span the Scaling Group.ü The role you want Auto Scaling to perform.ü What existing resources you want to use as part of your Auto Scaling

Groupü Distribute incoming traffic automatically.ü Use ELB metrics to scale your application.ü Monitor a metric such as CPU usage, incoming traffic etc.

Page 5: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

5

Figure shows deployed AWS resources after Load Balancer, Launch Configuration and Auto Scaling is set up

Amazon CloudWatchØ It is a service used to monitor AWS resources.ØWe can collect and track metrics, create alarms, send notifications.Ø It offers Basic or detailed monitoring.

It Can Monitor…

v Amazon Elastic Block Storage(EBS)v Amazon EC2 Container Service(ECS)v Amazon DynamoDB

v Amazon EC2v Auto Scalingv Amazon SNSv Amazon Relational Database Service(RDS)v Elastic Load Balancing

Page 6: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

6

It Can Monitor…

Some Metrics we can Monitor on EC2 are…

One Example…

Page 7: AWS CLOUD LB AS Nikhil Masur - Compatibility Mode › gupta › teaching › cs6030... · 2019-10-02 · 10/2/19 3 FEATURES 1. High availability Elastic Load Balancing automatically

10/2/19

7