Top Banner
1 Module 5 AWS Elasticity and Management Tools 3
22

AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

Apr 16, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

1

Module 5 AWS Elasticity and Management Tools

3

Page 2: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

2© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Triad of Services

Latency

Utilization

CloudWatchAuto Scaling

Elastic Load Balancing

Auto Scaling group

Execute AS Policy

Page 3: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

3© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Elastic Load Balancing

• Distributes traffic across multiple EC2 instances, in multiple Availability Zones

• Supports health checks to detect unhealthy Amazon EC2 instances

• Supports the routing and load balancing of HTTP, HTTPS, SSL, and TCP traffic to Amazon EC2 instances

Elastic Load Balancing

Page 4: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

4© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Classic Load Balancer - How It Works

Register instances with your load balancer.

Availability Zone A Availability Zone B

load balancer

X

Page 5: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

5© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Target Group /mobile

Application Load Balancer – How It Works

Register instances as targets in a target group, and route traffic to a target group.

load balancer

Listener ListenerRule Rule Rule

Target Group Target Group /api

Target Target Target Target Target Target TargetHealthCheck

HealthCheck

HealthCheck

Page 6: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

6© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Load Balancer Comparison

Classic Load Balancer benefits include support for:• EC2-Classic.• VPC.• TCP and SSL listeners.• Sticky sessions.

ALB benefits include support for:• Path-based routing.• Routing requests to multiple

services on a single EC2 instance.

• Containerized applications.• Monitoring the health of

each service independently.

Page 7: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

7© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon CloudWatch

• A monitoring service for AWS cloud resources and the applications you run on AWS

• Visibility into resource utilization, operational performance, and overall demand patterns

• Custom application-specific metrics of your own• Accessible via AWS Management Console, APIs,

SDK, or CLI

Amazon CloudWatch

Page 8: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

8© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon CloudWatch Facts

• Monitor other AWS resources • View graphics and statistics

• Set Alarms

Page 9: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

9© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon CloudWatch Architecture

AWS resources that support CloudWatch

Amazon CloudWatch

Amazon CloudWatch

Alarm

SNS Email Notification

Auto Scaling

Available Statistics

Statistics Consumer

AWS Management

Console

CloudWatch Metrics

CPUUtilization

StatusCheckFailed

Custom Application-

Specific Metrics

PageViewCount

Page 10: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

10© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

CloudWatch Metrics Examples

Page 11: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

11© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Auto Scaling

• Scale your Amazon EC2 capacity automatically

• Well-suited for applications that experience variability in usage

• Available at no additional charge Auto Scaling

Page 12: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

12© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Auto Scaling Benefits

Better Cost Management

Better Availability

Better Fault Tolerance

Page 13: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

13© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Launch Configurations

• A launch configuration is a template that an Auto Scaling group uses to launch EC2 instances.

• When you create a launch configuration, you can specify:• AMI ID• Instance type• Key pair• Security groups• Block device mapping• User data

Page 14: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

14© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Auto Scaling Groups

• Contain a collection of EC2 instances that share similar characteristics.

• Instances in an Auto Scaling group are treated as a logical grouping for the purpose of instance scaling and management. Auto Scaling group

Minimum size

Desired capacityMaximum size

Scale out as needed

Page 15: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

15© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Dynamic Scaling

• You can create a scaling policy that uses CloudWatch alarms to determine:• When your Auto Scaling group should scale out.• When your Auto Scaling group should scale in.

• You can use alarms to monitor:• Any of the metrics that AWS services send to Amazon

CloudWatch.• Your own custom metrics.

Page 16: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

16© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Auto Scaling Basic Lifecycle

instances

Auto Scaling group

Scale Out

Amazon CloudWatchScheduled Event

Scale In

Amazon CloudWatchScheduled Event

Launch Instance

Attach to Group

Detach from Group

Terminate Instance X

Page 17: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

17© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS Trusted Advisor

• Best practice and recommendation engine.• Provides AWS customers with performance and

security recommendations in four categories: • Cost optimization• Security• Fault tolerance• Performance improvement.

AWS Trusted Advisor

Page 18: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

18© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Cost Optimization

• Amazon EC2 Reserved Instance Optimization• Low-utilization Amazon EC2 Instances• Idle load balancers• Underutilized Amazon EBS volumes• Unassociated Elastic IP addresses• Amazon RDS idle DB instances

Page 19: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

19© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Security

• Security groups• AWS IAM use• Amazon S3 bucket permissions• MFA on toot Account• AWS IAM password policy• Amazon RDS security group access risk

Page 20: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

20© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Fault Tolerance

• Amazon EBS Snapshots• Load balancer optimization• Auto Scaling Group Resources• Amazon RDS Multi-AZ• Amazon Route 53 name server delegations• ELB connection draining

Page 21: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

21© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Performance Improvement

• High-utilization Amazon EC2 instances• Service limits• Large number of rules in EC2 security group• Over-utilized Amazon EBS magnetic volumes• Amazon EC2 to EBS throughput optimization• Amazon CloudFront alternate domain names

Page 22: AWSome Day 2016 - Module 5: AWS Elasticity and Management Tools

31

© 2016 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.

Errors or corrections? Email us at [email protected]. For all other questions, contact us at:

https://aws.amazon.com/contact-us/aws-training/.

All trademarks are the property of their owners.