scaling your web app horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

14
Scaling your WebApp Horizontally and Vertically (Ahmedabad Amazon AWS Cloud Meetup) AWS Meetup Team May 30, 2015

Upload: jhalak-modi

Post on 14-Aug-2015

111 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Scaling your WebApp Horizontally and Vertically

(Ahmedabad Amazon AWS Cloud Meetup)

AWS Meetup TeamMay 30, 2015

Page 2: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Overview

● Speaker’s Note● Brief Review● Architecture Diagram ● AWS Auto Scaling● Auto Scaling Components● Task to be performed● Questionnaire Round

Page 3: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Speaker’s Note

Jhalak Modi● AWS Certified Solution Architect● mail id: [email protected] ● Ph. No.: 9537770102

Bhavin Parmar● AWS Certified Solution Architect● mail id: [email protected]● Ph. No.: 9925078483

Page 4: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Brief Review

● AWS EC2: ○ Elastic Compute Cloud○ provides resizable compute capacity in the cloud○ Hardware as a Service

● AMI:○ Bootable root disk○ Pre-defined or user built

● AWS ELB○ Elastic Load Balancing○ Distributes incoming traffic across multiple EC2 instances in the cloud

Page 5: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Architecture Diagram

Page 6: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

AWS Auto Scaling

Auto Scaling helps you ensure that you have the correct number of EC2 instances available to handle the load for your application.

Page 7: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Auto Scaling Components● Groups:

○ 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.

● Launch configurations: ○ Group uses a launch configuration as template for its EC2 instances.○ Consist of AMI ID, instance type, key pair, security groups, and block

device mapping for your instances.● Scaling plans:

○ A scaling plan tells Auto Scaling when and how to scale. ○ For example, you can base a scaling plan on the occurrence of

specified conditions (dynamic scaling) or on a schedule.

Page 8: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Task To be Performed

● Creating EC2 instance● Creating Security Group● Creating Load Balancing● Creating AMI● Scaling Vertically● Creating a Launch Configuration● Creating an Auto Scaling Group● Verifying Auto Scaling Group Creation● Load Testing

Page 9: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Questionnaire Round

● After creating a new AWS account, you use an API to request 40 ON-demand instances in single AZ’s. After 20 successful requests, subsequent request failed. What could be the reason for this issue, and how would you resolve it?

Page 10: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Questionnaire Round

● You receive a spot instance at a bid of $0.05/hr. After 30 minutes, the Spot price increases to $0.06/hr and your Spot instance is terminated by AWS. What was the total EC2 compute cost of running your spot instance?

Page 11: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Questionnaire Round

● How to protect S3 (Amazon simple storage service) objects from both accidental deletion and accidental overwriting?

Page 12: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Questionnaire Round

● Which services could be used alone to host a static website?

Page 13: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Queries?

Page 14: Scaling your web app  horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)

Thank You!!!