scaling your web app horizontally and vertically (ahmedabad amazon aws cloud meetup)(1)
TRANSCRIPT
Scaling your WebApp Horizontally and Vertically
(Ahmedabad Amazon AWS Cloud Meetup)
AWS Meetup TeamMay 30, 2015
Overview
● Speaker’s Note● Brief Review● Architecture Diagram ● AWS Auto Scaling● Auto Scaling Components● Task to be performed● Questionnaire Round
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
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
Architecture Diagram
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.
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.
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
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?
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?
Questionnaire Round
● How to protect S3 (Amazon simple storage service) objects from both accidental deletion and accidental overwriting?
Questionnaire Round
● Which services could be used alone to host a static website?
Queries?
Thank You!!!