SlideShare a Scribd company logo
1 of 48
Download to read offline
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 1
Training Course
Amazon Web Service
Day Content Lab
Day 1 System Operations on AWS
Day 2 Computing on AWS X
Day 3 Networking on AWS X
Day 4 Storage in AWS (EBS, EFS, Instance Store) X
Day 5 Elastic Load Balancing & Auto Scaling Group X
Day 6 Storage S3 in AWS X
Day 7 Route 53 X
Day 8 RDS, Aurora, ElastiCache X
Day 9 CloudWatch X
Author: Bui Quang Lam
Phone/Zalo: +84.0365.635.598
Mail: buiquanglam185@gmail.com
 Goal: Understanding Elastic Load Balancing & Auto Scaling
Group
 Understand what is ELB & ASG
 How to load balancing in AWS
 Auto Scaling Group
 How to connect with others?
Lab: Create and configuring ELB & ASG
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 2
Module 5: ELB & ASG
Elastic Load Balancing
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 3
Module 5: ELB & ASG
Scalability & High Availibity
• Scalability means that an application/system can handle greater loads
by adapting
• There are two kinds of scalability:
• Vertical Scalability
• Horizontal Scalability (=elasticity)
• Scalability is linked but different to High Availability
• Let’s deep dive into the distinction, using a call center as an example
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 4
Module 5: ELB & ASG
Vertical Scalability
• Vertially scalability means increasing the size of the instance
• For example, your application runs on a t2.micro
• Scaling that application vertically means running it on a
t2.large
• Vertical scalability is very common for non distributed
systems, such as a database
• RDS, ElastiCache are services that can scale vertically
• There’s usually a limit to how much you can vertically scale
(hardware limit)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 5
Module 5: ELB & ASG
Horizontal Scalability
• Horizontal Scalability means increasing the number of
instances/system for your application
• Horizontal scaling implies distributed system
• This is very common for web applications/modern
applications
• It’s easy to horizontally scale thanks the cloud offerings
such as Amazon EC2
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 6
Module 5: ELB & ASG
High Availability
• High Availability usually goes hand in hand with
honrizontal scaling
• High Availability means running your applications/system
in at least 2 data center (==Availability Zones)
• The goal of high availability is to survive a data center
loss
• The high availability can be passive (for RDS Multi AZ for
example)
• The high availability can be active (for horizontal scaling)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 7
Module 5: ELB & ASG
High Availability & Scalability For EC2
• Vertical Scaling: Increase instance size (= scale up/down)
• From: t2.nano – 0.5G of RAM, 1 vCPU
• To: u-1 2tb 1.metal – 12.3 TB of RAM, 449 vCPUs
• Horizontal Scaling: Increase number of instances (= scale out/in)
• Auto Scaling Group
• Load Balancer
• High Availability: Run instances for the same application across multi AZ
• Auto Scaling Group multi AZ
• Load Balancer multi AZ
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 8
Module 5: ELB & ASG
What is load balancing?
• Load balancers are servers that forward internet traffic to multiple
servers (EC2 Instances) downstream
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 9
Module 5: ELB & ASG
Why use a load balancer?
• Spread load across multiple downstream instances
• Expose a single point of access (DNS) to your application
• Seamlessly handle failures of downstream instances
• Do regular health checks to your instances
• Provide SSL termination (HTTPS) for your websites
• Enforce stickiness with cookies
• High availability across zones
• Separate public traffic from private traffic
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 10
Module 5: ELB & ASG
Why use an EC2 Load Balancer?
• An ELB (EC2 Load Balancer) is a managed load balancer
• AWS guarantees that it will be working
• AWS takes care of upgrades, maintenance, high availability
• AWS provides only a few configuration knobs
• It cost less to setup your own load balancer but it will be a lot more
effort on your end
• It is integrated with many AWS offerings/services
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 11
Module 5: ELB & ASG
Health Checks
• Health Checks are crucial for Load Balancers
• Thye enable the load balancer to know if instances it forwards traffic to
available to reply to requests
• The health check is done on a port and a route (/health is common)
• If the response is not 200 (OK), then the instance is unhealthy
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 12
Module 5: ELB & ASG
Types of load balancer on AWS
• AWS has 3 kinds of managed Load Balancers
• Classic Load Balancer (v1 – old generation) – 2009
• HTTP, HTTPS, TCP
• Application Load Balancer (v2 – new generation) – 2016
• HTTP, HTTPS, WebSocket
• Network Load Blancer (v2 – new generation) – 2017
• TCP, TLS (secure TCP) & UDP
• Overall, it is recommended to use the newer/v2 generation load balancers as
they provide more features
• You can setup internal (private) or external (public) ELBs
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 13
Module 5: ELB & ASG
Load Balancer Security Groups
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 14
Module 5: ELB & ASG
Load Balancer Good to Know
• LBs can scale but not instantaneously – contact AWS for a “warm-up”
• Troubleshooting
• 4xx errors are client induced errors
• 5xx errors are application induced errors
• Load Balancer Errors 503 means at capacity or no registered target
• If the LB can’t connect to your application, check your security groups!
• Monitoring
• ELB access logs will log all access request (so you can debug per request)
• CloudWatch Metrics will give you aggregate statistics (ex: connections count)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 15
Module 5: ELB & ASG
Classic Load Balancer (v1)
• Supports TCP (Layer 4), HTTP & HTTPS (Layer 7)
• Health checks are TCP or HTTP based
• Fixed hostname
XXX. Regionx.elb.amazonaws.com
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 16
Module 5: ELB & ASG
Application Load Balancer (v2)
• Application load balancers is Layer 7 (HTTP)
• Load balancing to multiple HTTP applications across machines (Target group)
• Load balancing to multiple applications on the same machine (ex: containers)
• Support for HTTP/2 and WebSocket
• Suppot redirects (from HTTP to HTTPS for example)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 17
Module 5: ELB & ASG
Application Load Balancer (v2)
• Routing tables to different target groupsusers
• Routing based on path in URL (example.com/ & example.com/posts)
• Routing based on hostname in URL (one.example.com & other.example.com)
• Routing based on Query String, Headers (example.com/users?id=123&order=false)
• ALB are a great fit for micro services & container-based application (example:
Docker & Amazon ECS)
• Has a port mapping feature to redirect to a dynamic port in ECS
• In comparison, we’d need multiple Classic Load Balancer per application
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 18
Module 5: ELB & ASG
Application Load Balancer (v2)
HTTP Based Traffic
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 19
Module 5: ELB & ASG
Application Load Balancer (v2)
Target Groups
• EC2 instances (can be managed by an Auto Scaling Group) – HTTP
• ECS task (managed by ECS itself) – HTTP
• Lambda functions – HTTP request is translated into a JSON event
• IP Addresses – must be private Ips
• ALB can route to multiple target groups
• Health checks are at the target group level
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 20
Module 5: ELB & ASG
Application Load Balancer (v2)
Query Strings/Parameters Routing
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 21
Module 5: ELB & ASG
Application Load Balancer (v2)
Good to Know
• Fix hostname (XXX. Region.elb.amazonaws.com)
• The application servers don’t see the IP of the client directly
• The true IP of the client is inserted in the head X-Forwarded-For
• We can also get Port (X-Forwarded-Port) and proto (X-Forwarded-Proto)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 22
Module 5: ELB & ASG
Network Load Balancer (v2)
• Network load balancers (Layer 4) allow to:
• Forward TCP & UDP traffic to your instances
• Handle millions of request per seconds
• Less latency ~ 100 ms (vs 400 ms for ALB)
• NLB has one static IP per AZ, and supports assigning Elastic IP
(helpful for whitelisting specific IP)
• NLB are used for extreme performance, TCP or UDP traffic
• Not included in the AWS free tier
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 23
Module 5: ELB & ASG
Network Load Balancer (v2) – TCP (Layer 4) Based
Traffic
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 24
Module 5: ELB & ASG
Load Balancer Stickiness
• It is possible to implement stickiness so
that the same client is always redirected to
the same instance behind a load balancer
• This works for Classical Load Balancers &
Application Load Balancers
• The “cookie” used for stickiness has an
expiration date you control
• Use case: make sure the user doesn’t lose
his session data
• Enabling stickiness may bring imbalance to
the load over the backend EC2 instances
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 25
Module 5: ELB & ASG
Cross-Zone Load Balancing
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 26
Module 5: ELB & ASG
Cross-Zone Load Balancing
• Application Load Balancer
• Always on (can’t be disabled)
• No charges for inter AZ data
• Network Load Balancer
• Disabled by default
• You pay charges ($) for inter AZ data if enabled
• Classic Load Balancer
• Through Console -> Enabled by default
• Through CLI/API -> Disabled by default
• No charges for inter AZ data if enabled
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 27
Module 5: ELB & ASG
SSL/TLS - Basics
• An SSL Certificate allows traffic between your clients and your load balancer to
be encrypted in transit (in-flight encryption)
• SSL refers to Secure Socket Layers, used to encrypt connections
• TLS refers to Transport Layer Security, which is a newer version
• Nowadays, TLS certificates are mainly used, but people still refer as SSL
• Public SSL certificates are issues by Certificate Authorities (CA)
• Comodo, Symantec, GoDaddy, GlobalSign, Digicert, Letsencrypt, etc…
• SSL certificates have an expiration date (you set) and must be renewed
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 28
Module 5: ELB & ASG
Load Balancer – SSL Certificates
• The load balancer uses an X.509 certificate (SSL/TLS server certificate)
• You can manage certificates using ACM (AWS Certificate Manager)
• You can create upload your own certificates alternatively
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 29
Module 5: ELB & ASG
Load Balancer – SSL Certificates
• HTTPS listener:
• You must specify a default certificate
• You can add an optinal list of certs to support multiple domains
• Clients can use SNI (Server Name Indication) to specify the hostname they reach
• Ability to specify a security policy to support older versions of SSL/TLS (legacy client)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 30
Module 5: ELB & ASG
Load Balancer – SSL Certificates
• SNI solves the problem of loading multiple SSL certificates on to one web
server (to serve multiple websites)
• It’s a “newer” protocol, and requireds the client to indicate the hostname
of the target server in the initial SSL handshake
• The server will then find the correct certificate or return the default one
• Note:
• Only works for ALB & NLB (newer generation). CloudFront
• Does not work for CLB (older gen)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 31
Module 5: ELB & ASG
Load Balancer – SSL Certificates
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 32
Module 5: ELB & ASG
Elastic Load Balancer – SSL Certificates
• Classic Load Balancer (v1)
• Support only one SLL certificate
• Must use multiple CLB for multiple hostname with multiple SSL certificates
• Application Load Balancer (v2)
• Supports multiple listeners with multiple SSL certificates
• Uses Server Name Indication (SNI) to make it work
• Network Load Balancer (v3)
• Supports multiple listeners with multiple SSL certificates
• Uses Server Name Indicaton (SNI) to make it work
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 33
Module 5: ELB & ASG
ELB – Connection Draining
• Feature naming:
• CLB: Connection Draining
• Target Group: Deregistration Delay (for ALB & NLB)
• Time to complete “in-flight request” while the instance is de-registering or
unhealthy
• Stops sending new requests to the instance which is de-registering
• Between 1 to 3600 seconds, default is 300 second
• Can be disabled (set value to 0)
• Set to a low value if your requests are short
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 34
Module 5: ELB & ASG
ELB – Connection Draining
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 35
Module 5: ELB & ASG
Auto Scaling Group
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 36
Module 5: ELB & ASG
What’ s an Auto Scaling Group?
• In real-life, the load on your websites and application can change
• In the cloud, you can create and get rid of servers very quickly
• The goal of an Auto Scaling Group (ASG) is to
• Scale out (add EC2 instances) to match an increased load
• Scale in (remove EC2 instances) to match a descread load
• Ensure we have a minimum and a maximum number of machines running
• Automatically Register new instances to load balancer
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 37
Module 5: ELB & ASG
Auto Scaling Group in AWS
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 38
Module 5: ELB & ASG
Auto Scaling Group in AWS with Load Balancer
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 39
Module 5: ELB & ASG
ASGs have the following attributes
• A launch configuration
• AMI + Instance Type
• EC2 User Data
• EBS Volumes
• Security Groups/ SSH Key Pair
• Min Size/ Max Size / Initial Capacity
• Network + Subnets Information
• Load Balancer Information
• Scaling Policies
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 40
Module 5: ELB & ASG
Auto Scaling Alarms
• It is possible to scale an ASG based on CloudWatch alarms
• An Alarm monitors a metric (such as Average CPU)
• Metrics are computed for the overall ASG instances
• Based on the alarm:
• We can create scale-out policies (increase the number of instances)
• We can create scale-in policies (decrease the number of instances)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 41
Module 5: ELB & ASG
Auto Scaling New Rules
• It is now possible to define “better” auto scaling rules that are directly
managed by EC2
• Target Average CPU Usage
• Number of requests on the ELB per instance
• Average Network In
• Average Network Out
• These rules are easier to set up and can make more sense
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 42
Module 5: ELB & ASG
Auto Scaling Custom Metric
• We can auto scale based on custom metric (ex: number of connected
users)
• 1. Send custom metric from application on EC2 to CloudWatch
(PutMetric API)
• 2. Create CloudWatch alarm to react to low/high values
• 3. Use the CloudWatch alarm as the scaling policy for ASG
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 43
Module 5: ELB & ASG
ASG Brain Dump
• Scaling policies can be on CPU, Network… and can even be on custom metrics
or based on a schedule (if you know your visitors patterns)
• ASGs use Launch configurations or Launch Templates (newer)
• To update an ASG, you must provide a new launch configuration/launch
template
• IAM roles attached to an ASG will get assigned to EC2 instaces
• ASG are free. You pay for the underlying resources being launched
• Having instances under an ASG means that if they get terminated for whatever
reason, the ASG will automatically create new ones as a replacement. Extra
safety!
• ASG can terminate instancese marked as unhealthy by an LB
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 44
Module 5: ELB & ASG
Auto Scaling Groups – Scaling Policies
• Target Tracking Scaling
• Most simple and easy to set-up
• Example: I want the average ASG CPU to stay at around 40%
• Simple / Step Scaling
• When a CloudWatch alarm is triggered (example CPU>70%), then add 2 units
• When a CloudWatch alarm is triggered (example CPU<30%), then remove 1
• Scheduled Actions
• Anticipate a scaling based on known usage patterns
• Example: increase the min capacity to 10 at 5pm on Fridays
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 45
Module 5: ELB & ASG
Auto Scaling Groups – Scaling Cooldowns
• The cooldown period helps to ensure that your Auto Scaling groups doesn’t
launch or terminate additional instances before the previos scaling activity
takes effect
• If the default cooldown period of 300 seconds is too long – you can reduce
cost by applying a scaling-specific cooldown period of 180 seconds to the
scale-in policy
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 46
Module 5: ELB & ASG
ASG for Solutions Architects
• ASG Default Termiantion Policy (simplified
version)
• Find the AZ which have the most
number of instance
• IF there are multiple instances in the AZ
to choose from, delete the one with the
oldest launch configuration
• ASG tries the balance the number of
instances across AZ by default
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 47
Module 5: ELB & ASG
ASG for Solutions Architects – Launch Template &
Launch Configuration
• Boths
• ID of the AMI, the instance type, a key pair, security groups, and the other parameters that you
use to launch EC2 instance (tags, EC2 user-data, ..)
• Launch Configuration (legancy)
• Must be re-created every time
• Launch Template (newer)
• Can have multiple versions
• Create parameters subsets
• Provision using both On-Demand and Spot instances (or a mix)
• Can use T2 unlimited burst feature
• Recommend by AWS going forward
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 48
Module 5: ELB & ASG

More Related Content

What's hot

Training AWS: Module 9 - CloudWatch
Training AWS: Module 9 - CloudWatchTraining AWS: Module 9 - CloudWatch
Training AWS: Module 9 - CloudWatchBùi Quang Lâm
 
AWS Virtual Private Cloud
AWS Virtual Private CloudAWS Virtual Private Cloud
AWS Virtual Private CloudWhizlabs
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudVladimir Ilic
 
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...Amazon Web Services
 
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field ExperienceAWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field ExperienceAmazon Web Services
 
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...Amazon Web Services
 
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum Efficiency
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum EfficiencyDeploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum Efficiency
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum EfficiencyAmazon Web Services
 
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)Amazon Web Services
 
(STG406) Using S3 to Build and Scale an Unlimited Storage Service
(STG406) Using S3 to Build and Scale an Unlimited Storage Service(STG406) Using S3 to Build and Scale an Unlimited Storage Service
(STG406) Using S3 to Build and Scale an Unlimited Storage ServiceAmazon Web Services
 
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...Amazon Web Services
 
VMware and AWS together (June 2017)
VMware and AWS together (June 2017)VMware and AWS together (June 2017)
VMware and AWS together (June 2017)Julien SIMON
 
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...Amazon Web Services
 
AWS Webcast - Library Systems on the AWS Cloud
AWS Webcast - Library Systems on the AWS CloudAWS Webcast - Library Systems on the AWS Cloud
AWS Webcast - Library Systems on the AWS CloudAmazon Web Services
 
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...Amazon Web Services
 
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)Amazon Web Services
 
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...Amazon Web Services
 
Awsgsg wah-linux
Awsgsg wah-linuxAwsgsg wah-linux
Awsgsg wah-linuxSebin John
 
Storage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierStorage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierAmazon Web Services
 
The art of infrastructure elasticity
The art of infrastructure elasticityThe art of infrastructure elasticity
The art of infrastructure elasticityHarish Ganesan
 

What's hot (20)

Training AWS: Module 9 - CloudWatch
Training AWS: Module 9 - CloudWatchTraining AWS: Module 9 - CloudWatch
Training AWS: Module 9 - CloudWatch
 
AWS Virtual Private Cloud
AWS Virtual Private CloudAWS Virtual Private Cloud
AWS Virtual Private Cloud
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloud
 
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
 
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field ExperienceAWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
 
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
 
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum Efficiency
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum EfficiencyDeploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum Efficiency
Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum Efficiency
 
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)
AWS Summit London 2014 | From One to Many - Evolving VPC Design (400)
 
(STG406) Using S3 to Build and Scale an Unlimited Storage Service
(STG406) Using S3 to Build and Scale an Unlimited Storage Service(STG406) Using S3 to Build and Scale an Unlimited Storage Service
(STG406) Using S3 to Build and Scale an Unlimited Storage Service
 
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...
Running Lean and Mean: Designing Cost-efficient Architectures on AWS (ARC313)...
 
VMware and AWS together (June 2017)
VMware and AWS together (June 2017)VMware and AWS together (June 2017)
VMware and AWS together (June 2017)
 
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...
AWS re:Invent 2016: Workshop: AWS Professional Services Effective Architectin...
 
AWS Webcast - Library Systems on the AWS Cloud
AWS Webcast - Library Systems on the AWS CloudAWS Webcast - Library Systems on the AWS Cloud
AWS Webcast - Library Systems on the AWS Cloud
 
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...
Amazon CloudFront Office Hour, “Using Amazon CloudFront with Amazon S3 & AWS ...
 
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
 
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
 
Awsgsg wah-linux
Awsgsg wah-linuxAwsgsg wah-linux
Awsgsg wah-linux
 
AWS Webcast - Website Hosting
AWS Webcast - Website HostingAWS Webcast - Website Hosting
AWS Webcast - Website Hosting
 
Storage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierStorage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon Glacier
 
The art of infrastructure elasticity
The art of infrastructure elasticityThe art of infrastructure elasticity
The art of infrastructure elasticity
 

Similar to Training AWS: Module 5 - Elastic Load Balancing & ASG

AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...Amazon Web Services
 
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationAWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationSanjay Sharma
 
Meetup #4: AWS ELB Deep dive & Best practices
Meetup #4: AWS ELB Deep dive & Best practicesMeetup #4: AWS ELB Deep dive & Best practices
Meetup #4: AWS ELB Deep dive & Best practicesAWS Vietnam Community
 
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐Pahud Hsieh
 
Web App Security -Pradeep K.pptx
Web App Security -Pradeep K.pptxWeb App Security -Pradeep K.pptx
Web App Security -Pradeep K.pptxPradeepK344324
 
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel Aviv
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel AvivElastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel Aviv
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel AvivAmazon Web Services
 
Modernizing DevOps
Modernizing DevOpsModernizing DevOps
Modernizing DevOpsCloudHesive
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingAmazon Web Services
 
Elasticity using AWS | Sherdil IT Academy
Elasticity using AWS | Sherdil IT AcademyElasticity using AWS | Sherdil IT Academy
Elasticity using AWS | Sherdil IT AcademyMuhammad Usman Khan
 
(CMP401) Elastic Load Balancing Deep Dive and Best Practices
(CMP401) Elastic Load Balancing Deep Dive and Best Practices(CMP401) Elastic Load Balancing Deep Dive and Best Practices
(CMP401) Elastic Load Balancing Deep Dive and Best PracticesAmazon Web Services
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingAmazon Web Services
 
Application Lifecycle Management on AWS
Application Lifecycle Management on AWSApplication Lifecycle Management on AWS
Application Lifecycle Management on AWSDavid Mat
 
Meeyup aws-loadbalancing-28032015
Meeyup aws-loadbalancing-28032015Meeyup aws-loadbalancing-28032015
Meeyup aws-loadbalancing-28032015Jhalak Modi
 
saa3_wk5.pdf
saa3_wk5.pdfsaa3_wk5.pdf
saa3_wk5.pdfMichgo1
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWSTom Laszewski
 
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...Amazon Web Services
 
A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)Julien SIMON
 
Managed Cloud Services for Siebel CRM on Amazon AWS
Managed Cloud Services for Siebel CRM on Amazon AWSManaged Cloud Services for Siebel CRM on Amazon AWS
Managed Cloud Services for Siebel CRM on Amazon AWSMilind Waikul
 

Similar to Training AWS: Module 5 - Elastic Load Balancing & ASG (20)

AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
 
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationAWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
 
Meetup #4: AWS ELB Deep dive & Best practices
Meetup #4: AWS ELB Deep dive & Best practicesMeetup #4: AWS ELB Deep dive & Best practices
Meetup #4: AWS ELB Deep dive & Best practices
 
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
 
Web App Security -Pradeep K.pptx
Web App Security -Pradeep K.pptxWeb App Security -Pradeep K.pptx
Web App Security -Pradeep K.pptx
 
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel Aviv
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel AvivElastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel Aviv
Elastic Load Balancing Deep Dive and Best Practices - Pop-up Loft Tel Aviv
 
Modernizing DevOps
Modernizing DevOpsModernizing DevOps
Modernizing DevOps
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load Balancing
 
Elasticity using AWS | Sherdil IT Academy
Elasticity using AWS | Sherdil IT AcademyElasticity using AWS | Sherdil IT Academy
Elasticity using AWS | Sherdil IT Academy
 
(CMP401) Elastic Load Balancing Deep Dive and Best Practices
(CMP401) Elastic Load Balancing Deep Dive and Best Practices(CMP401) Elastic Load Balancing Deep Dive and Best Practices
(CMP401) Elastic Load Balancing Deep Dive and Best Practices
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load Balancing
 
Application Lifecycle Management on AWS
Application Lifecycle Management on AWSApplication Lifecycle Management on AWS
Application Lifecycle Management on AWS
 
Meeyup aws-loadbalancing-28032015
Meeyup aws-loadbalancing-28032015Meeyup aws-loadbalancing-28032015
Meeyup aws-loadbalancing-28032015
 
saa3_wk5.pdf
saa3_wk5.pdfsaa3_wk5.pdf
saa3_wk5.pdf
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
New AWS Services
New AWS ServicesNew AWS Services
New AWS Services
 
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
 
A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)
 
Managed Cloud Services for Siebel CRM on Amazon AWS
Managed Cloud Services for Siebel CRM on Amazon AWSManaged Cloud Services for Siebel CRM on Amazon AWS
Managed Cloud Services for Siebel CRM on Amazon AWS
 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 

Training AWS: Module 5 - Elastic Load Balancing & ASG

  • 1. AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 1 Training Course Amazon Web Service Day Content Lab Day 1 System Operations on AWS Day 2 Computing on AWS X Day 3 Networking on AWS X Day 4 Storage in AWS (EBS, EFS, Instance Store) X Day 5 Elastic Load Balancing & Auto Scaling Group X Day 6 Storage S3 in AWS X Day 7 Route 53 X Day 8 RDS, Aurora, ElastiCache X Day 9 CloudWatch X Author: Bui Quang Lam Phone/Zalo: +84.0365.635.598 Mail: buiquanglam185@gmail.com
  • 2.  Goal: Understanding Elastic Load Balancing & Auto Scaling Group  Understand what is ELB & ASG  How to load balancing in AWS  Auto Scaling Group  How to connect with others? Lab: Create and configuring ELB & ASG AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 2 Module 5: ELB & ASG
  • 3. Elastic Load Balancing AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 3 Module 5: ELB & ASG
  • 4. Scalability & High Availibity • Scalability means that an application/system can handle greater loads by adapting • There are two kinds of scalability: • Vertical Scalability • Horizontal Scalability (=elasticity) • Scalability is linked but different to High Availability • Let’s deep dive into the distinction, using a call center as an example AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 4 Module 5: ELB & ASG
  • 5. Vertical Scalability • Vertially scalability means increasing the size of the instance • For example, your application runs on a t2.micro • Scaling that application vertically means running it on a t2.large • Vertical scalability is very common for non distributed systems, such as a database • RDS, ElastiCache are services that can scale vertically • There’s usually a limit to how much you can vertically scale (hardware limit) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 5 Module 5: ELB & ASG
  • 6. Horizontal Scalability • Horizontal Scalability means increasing the number of instances/system for your application • Horizontal scaling implies distributed system • This is very common for web applications/modern applications • It’s easy to horizontally scale thanks the cloud offerings such as Amazon EC2 AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 6 Module 5: ELB & ASG
  • 7. High Availability • High Availability usually goes hand in hand with honrizontal scaling • High Availability means running your applications/system in at least 2 data center (==Availability Zones) • The goal of high availability is to survive a data center loss • The high availability can be passive (for RDS Multi AZ for example) • The high availability can be active (for horizontal scaling) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 7 Module 5: ELB & ASG
  • 8. High Availability & Scalability For EC2 • Vertical Scaling: Increase instance size (= scale up/down) • From: t2.nano – 0.5G of RAM, 1 vCPU • To: u-1 2tb 1.metal – 12.3 TB of RAM, 449 vCPUs • Horizontal Scaling: Increase number of instances (= scale out/in) • Auto Scaling Group • Load Balancer • High Availability: Run instances for the same application across multi AZ • Auto Scaling Group multi AZ • Load Balancer multi AZ AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 8 Module 5: ELB & ASG
  • 9. What is load balancing? • Load balancers are servers that forward internet traffic to multiple servers (EC2 Instances) downstream AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 9 Module 5: ELB & ASG
  • 10. Why use a load balancer? • Spread load across multiple downstream instances • Expose a single point of access (DNS) to your application • Seamlessly handle failures of downstream instances • Do regular health checks to your instances • Provide SSL termination (HTTPS) for your websites • Enforce stickiness with cookies • High availability across zones • Separate public traffic from private traffic AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 10 Module 5: ELB & ASG
  • 11. Why use an EC2 Load Balancer? • An ELB (EC2 Load Balancer) is a managed load balancer • AWS guarantees that it will be working • AWS takes care of upgrades, maintenance, high availability • AWS provides only a few configuration knobs • It cost less to setup your own load balancer but it will be a lot more effort on your end • It is integrated with many AWS offerings/services AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 11 Module 5: ELB & ASG
  • 12. Health Checks • Health Checks are crucial for Load Balancers • Thye enable the load balancer to know if instances it forwards traffic to available to reply to requests • The health check is done on a port and a route (/health is common) • If the response is not 200 (OK), then the instance is unhealthy AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 12 Module 5: ELB & ASG
  • 13. Types of load balancer on AWS • AWS has 3 kinds of managed Load Balancers • Classic Load Balancer (v1 – old generation) – 2009 • HTTP, HTTPS, TCP • Application Load Balancer (v2 – new generation) – 2016 • HTTP, HTTPS, WebSocket • Network Load Blancer (v2 – new generation) – 2017 • TCP, TLS (secure TCP) & UDP • Overall, it is recommended to use the newer/v2 generation load balancers as they provide more features • You can setup internal (private) or external (public) ELBs AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 13 Module 5: ELB & ASG
  • 14. Load Balancer Security Groups AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 14 Module 5: ELB & ASG
  • 15. Load Balancer Good to Know • LBs can scale but not instantaneously – contact AWS for a “warm-up” • Troubleshooting • 4xx errors are client induced errors • 5xx errors are application induced errors • Load Balancer Errors 503 means at capacity or no registered target • If the LB can’t connect to your application, check your security groups! • Monitoring • ELB access logs will log all access request (so you can debug per request) • CloudWatch Metrics will give you aggregate statistics (ex: connections count) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 15 Module 5: ELB & ASG
  • 16. Classic Load Balancer (v1) • Supports TCP (Layer 4), HTTP & HTTPS (Layer 7) • Health checks are TCP or HTTP based • Fixed hostname XXX. Regionx.elb.amazonaws.com AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 16 Module 5: ELB & ASG
  • 17. Application Load Balancer (v2) • Application load balancers is Layer 7 (HTTP) • Load balancing to multiple HTTP applications across machines (Target group) • Load balancing to multiple applications on the same machine (ex: containers) • Support for HTTP/2 and WebSocket • Suppot redirects (from HTTP to HTTPS for example) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 17 Module 5: ELB & ASG
  • 18. Application Load Balancer (v2) • Routing tables to different target groupsusers • Routing based on path in URL (example.com/ & example.com/posts) • Routing based on hostname in URL (one.example.com & other.example.com) • Routing based on Query String, Headers (example.com/users?id=123&order=false) • ALB are a great fit for micro services & container-based application (example: Docker & Amazon ECS) • Has a port mapping feature to redirect to a dynamic port in ECS • In comparison, we’d need multiple Classic Load Balancer per application AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 18 Module 5: ELB & ASG
  • 19. Application Load Balancer (v2) HTTP Based Traffic AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 19 Module 5: ELB & ASG
  • 20. Application Load Balancer (v2) Target Groups • EC2 instances (can be managed by an Auto Scaling Group) – HTTP • ECS task (managed by ECS itself) – HTTP • Lambda functions – HTTP request is translated into a JSON event • IP Addresses – must be private Ips • ALB can route to multiple target groups • Health checks are at the target group level AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 20 Module 5: ELB & ASG
  • 21. Application Load Balancer (v2) Query Strings/Parameters Routing AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 21 Module 5: ELB & ASG
  • 22. Application Load Balancer (v2) Good to Know • Fix hostname (XXX. Region.elb.amazonaws.com) • The application servers don’t see the IP of the client directly • The true IP of the client is inserted in the head X-Forwarded-For • We can also get Port (X-Forwarded-Port) and proto (X-Forwarded-Proto) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 22 Module 5: ELB & ASG
  • 23. Network Load Balancer (v2) • Network load balancers (Layer 4) allow to: • Forward TCP & UDP traffic to your instances • Handle millions of request per seconds • Less latency ~ 100 ms (vs 400 ms for ALB) • NLB has one static IP per AZ, and supports assigning Elastic IP (helpful for whitelisting specific IP) • NLB are used for extreme performance, TCP or UDP traffic • Not included in the AWS free tier AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 23 Module 5: ELB & ASG
  • 24. Network Load Balancer (v2) – TCP (Layer 4) Based Traffic AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 24 Module 5: ELB & ASG
  • 25. Load Balancer Stickiness • It is possible to implement stickiness so that the same client is always redirected to the same instance behind a load balancer • This works for Classical Load Balancers & Application Load Balancers • The “cookie” used for stickiness has an expiration date you control • Use case: make sure the user doesn’t lose his session data • Enabling stickiness may bring imbalance to the load over the backend EC2 instances AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 25 Module 5: ELB & ASG
  • 26. Cross-Zone Load Balancing AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 26 Module 5: ELB & ASG
  • 27. Cross-Zone Load Balancing • Application Load Balancer • Always on (can’t be disabled) • No charges for inter AZ data • Network Load Balancer • Disabled by default • You pay charges ($) for inter AZ data if enabled • Classic Load Balancer • Through Console -> Enabled by default • Through CLI/API -> Disabled by default • No charges for inter AZ data if enabled AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 27 Module 5: ELB & ASG
  • 28. SSL/TLS - Basics • An SSL Certificate allows traffic between your clients and your load balancer to be encrypted in transit (in-flight encryption) • SSL refers to Secure Socket Layers, used to encrypt connections • TLS refers to Transport Layer Security, which is a newer version • Nowadays, TLS certificates are mainly used, but people still refer as SSL • Public SSL certificates are issues by Certificate Authorities (CA) • Comodo, Symantec, GoDaddy, GlobalSign, Digicert, Letsencrypt, etc… • SSL certificates have an expiration date (you set) and must be renewed AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 28 Module 5: ELB & ASG
  • 29. Load Balancer – SSL Certificates • The load balancer uses an X.509 certificate (SSL/TLS server certificate) • You can manage certificates using ACM (AWS Certificate Manager) • You can create upload your own certificates alternatively AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 29 Module 5: ELB & ASG
  • 30. Load Balancer – SSL Certificates • HTTPS listener: • You must specify a default certificate • You can add an optinal list of certs to support multiple domains • Clients can use SNI (Server Name Indication) to specify the hostname they reach • Ability to specify a security policy to support older versions of SSL/TLS (legacy client) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 30 Module 5: ELB & ASG
  • 31. Load Balancer – SSL Certificates • SNI solves the problem of loading multiple SSL certificates on to one web server (to serve multiple websites) • It’s a “newer” protocol, and requireds the client to indicate the hostname of the target server in the initial SSL handshake • The server will then find the correct certificate or return the default one • Note: • Only works for ALB & NLB (newer generation). CloudFront • Does not work for CLB (older gen) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 31 Module 5: ELB & ASG
  • 32. Load Balancer – SSL Certificates AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 32 Module 5: ELB & ASG
  • 33. Elastic Load Balancer – SSL Certificates • Classic Load Balancer (v1) • Support only one SLL certificate • Must use multiple CLB for multiple hostname with multiple SSL certificates • Application Load Balancer (v2) • Supports multiple listeners with multiple SSL certificates • Uses Server Name Indication (SNI) to make it work • Network Load Balancer (v3) • Supports multiple listeners with multiple SSL certificates • Uses Server Name Indicaton (SNI) to make it work AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 33 Module 5: ELB & ASG
  • 34. ELB – Connection Draining • Feature naming: • CLB: Connection Draining • Target Group: Deregistration Delay (for ALB & NLB) • Time to complete “in-flight request” while the instance is de-registering or unhealthy • Stops sending new requests to the instance which is de-registering • Between 1 to 3600 seconds, default is 300 second • Can be disabled (set value to 0) • Set to a low value if your requests are short AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 34 Module 5: ELB & ASG
  • 35. ELB – Connection Draining AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 35 Module 5: ELB & ASG
  • 36. Auto Scaling Group AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 36 Module 5: ELB & ASG
  • 37. What’ s an Auto Scaling Group? • In real-life, the load on your websites and application can change • In the cloud, you can create and get rid of servers very quickly • The goal of an Auto Scaling Group (ASG) is to • Scale out (add EC2 instances) to match an increased load • Scale in (remove EC2 instances) to match a descread load • Ensure we have a minimum and a maximum number of machines running • Automatically Register new instances to load balancer AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 37 Module 5: ELB & ASG
  • 38. Auto Scaling Group in AWS AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 38 Module 5: ELB & ASG
  • 39. Auto Scaling Group in AWS with Load Balancer AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 39 Module 5: ELB & ASG
  • 40. ASGs have the following attributes • A launch configuration • AMI + Instance Type • EC2 User Data • EBS Volumes • Security Groups/ SSH Key Pair • Min Size/ Max Size / Initial Capacity • Network + Subnets Information • Load Balancer Information • Scaling Policies AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 40 Module 5: ELB & ASG
  • 41. Auto Scaling Alarms • It is possible to scale an ASG based on CloudWatch alarms • An Alarm monitors a metric (such as Average CPU) • Metrics are computed for the overall ASG instances • Based on the alarm: • We can create scale-out policies (increase the number of instances) • We can create scale-in policies (decrease the number of instances) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 41 Module 5: ELB & ASG
  • 42. Auto Scaling New Rules • It is now possible to define “better” auto scaling rules that are directly managed by EC2 • Target Average CPU Usage • Number of requests on the ELB per instance • Average Network In • Average Network Out • These rules are easier to set up and can make more sense AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 42 Module 5: ELB & ASG
  • 43. Auto Scaling Custom Metric • We can auto scale based on custom metric (ex: number of connected users) • 1. Send custom metric from application on EC2 to CloudWatch (PutMetric API) • 2. Create CloudWatch alarm to react to low/high values • 3. Use the CloudWatch alarm as the scaling policy for ASG AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 43 Module 5: ELB & ASG
  • 44. ASG Brain Dump • Scaling policies can be on CPU, Network… and can even be on custom metrics or based on a schedule (if you know your visitors patterns) • ASGs use Launch configurations or Launch Templates (newer) • To update an ASG, you must provide a new launch configuration/launch template • IAM roles attached to an ASG will get assigned to EC2 instaces • ASG are free. You pay for the underlying resources being launched • Having instances under an ASG means that if they get terminated for whatever reason, the ASG will automatically create new ones as a replacement. Extra safety! • ASG can terminate instancese marked as unhealthy by an LB AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 44 Module 5: ELB & ASG
  • 45. Auto Scaling Groups – Scaling Policies • Target Tracking Scaling • Most simple and easy to set-up • Example: I want the average ASG CPU to stay at around 40% • Simple / Step Scaling • When a CloudWatch alarm is triggered (example CPU>70%), then add 2 units • When a CloudWatch alarm is triggered (example CPU<30%), then remove 1 • Scheduled Actions • Anticipate a scaling based on known usage patterns • Example: increase the min capacity to 10 at 5pm on Fridays AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 45 Module 5: ELB & ASG
  • 46. Auto Scaling Groups – Scaling Cooldowns • The cooldown period helps to ensure that your Auto Scaling groups doesn’t launch or terminate additional instances before the previos scaling activity takes effect • If the default cooldown period of 300 seconds is too long – you can reduce cost by applying a scaling-specific cooldown period of 180 seconds to the scale-in policy AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 46 Module 5: ELB & ASG
  • 47. ASG for Solutions Architects • ASG Default Termiantion Policy (simplified version) • Find the AZ which have the most number of instance • IF there are multiple instances in the AZ to choose from, delete the one with the oldest launch configuration • ASG tries the balance the number of instances across AZ by default AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 47 Module 5: ELB & ASG
  • 48. ASG for Solutions Architects – Launch Template & Launch Configuration • Boths • ID of the AMI, the instance type, a key pair, security groups, and the other parameters that you use to launch EC2 instance (tags, EC2 user-data, ..) • Launch Configuration (legancy) • Must be re-created every time • Launch Template (newer) • Can have multiple versions • Create parameters subsets • Provision using both On-Demand and Spot instances (or a mix) • Can use T2 unlimited burst feature • Recommend by AWS going forward AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 48 Module 5: ELB & ASG