Professional Documents
Culture Documents
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module overview
Topics Activities
• Elastic Load Balancing • Elastic Load Balancing activity
• Amazon CloudWatch activity
• Amazon CloudWatch
• Amazon EC2 Auto Scaling
Lab
• Scale and Load Balance Your
Architecture
Knowledge check
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights
2
reserved.
Module objectives
• Distributes incoming
application or network traffic
across multiple targets in a
Elastic Load
single Availability Zone or Balancing
across multiple Availability
Zones.
IP addresses
• Scales your load balancer as
Containers
traffic to your application EC2 instances Lambda functions
You need simple load balancing with multiple Classic Load Balancer
protocols.
You need a load balancer that can handle Network Load Balancer
millions of requests per second while
maintaining low latencies.
11 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 10: Automatic Scaling and Monitoring
To use AWS efficiently, you need insight into your AWS resources:
• How do you know when you should launch more Amazon EC2
instances?
• Monitors –
• AWS resources
• Applications that run on AWS
• Collects and tracks –
Amazon • Standard metrics
CloudWatch • Custom metrics
• Alarms –
• Send notifications to an Amazon
SNS topic
• Perform Amazon EC2 Auto Scaling
or Amazon EC2 actions
• Events –
• Define rules to match changes in
AWS environment and route these
events to one or more target
functions or streams for processing
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
14
reserved.
CloudWatch alarms
Unused Over
capacity capacity
Su M T W Th F Sa Su M T W Th F Sa
Provisioned capacity
November
24 percent
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights
22
reserved.
Auto Scaling groups
Maximum size
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights
23
reserved.
Scaling out versus scaling in
Elastic Load
Balancing
Scheduled scaling
Launch
Auto Scaling group • Scheduled actions
configuration
• AMI • VPC and subnets
• Instance type • Load balancer Dynamic scaling
• IAM role • Scaling policies
• Security groups
• EBS volumes Predictive scaling
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights • AWS Auto Scaling 25
reserved.
Implementing dynamic scaling
CPU
utilization If average CPU
utilization is
> 60% for 5
minutes…
29 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 6: Scenario
AWS Cloud
Region
Availability Zone A Availability Zone B
VPC: 10.0.0.0/16 Internet Public subnet 2:
Public subnet 1: gateway 10.0.2.0/24
10.0.0.0/24
Security group
NAT gateway
Web Server 1
NAT gateway
Application
Private subnet 1: Load Balancer Private subnet 2:
10.0.1.0/24 10.0.3.0/24
Module wrap-up
Which service would you use to send alerts based on Amazon CloudWatch
alarms?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 38
Thank you
© 2019 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission
from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited. Corrections or feedback on the course, please email us at: aws-course-
feedback@amazon.com. For all other questions, contact us at: https://aws.amazon.com/contact-us/aws-training/. All trademarks are the property of their owners.