!"#$%&'()*'+),-./)0' 9##+':,%-.;),0'

Similar documents
Amazon Web Services Primer. William Strickland COP 6938 Fall 2012 University of Central Florida

How AWS Pricing Works May 2015

Amazon EC2 Product Details Page 1 of 5

Scaling in the Cloud with AWS. By: Eli White (CTO & mojolive) eliw.com - mojolive.com

Amazon Elastic Compute Cloud Getting Started Guide. My experience

Amazon Elastic Beanstalk

EEDC. Scalability Study of web apps in AWS. Execution Environments for Distributed Computing

How AWS Pricing Works

Razvoj Java aplikacija u Amazon AWS Cloud: Praktična demonstracija

Amazon Web Services Yu Xiao

ColdFusion 10 in the Amazon AWS Cloud. Sven Ramuschkat tecracer GmbH

AIST Data Symposium. Ed Lenta. Managing Director, ANZ Amazon Web Services

AWS Performance Tuning

Scalable Architecture on Amazon AWS Cloud

CLOUD COMPUTING WITH AWS An INTRODUCTION. John Hildebrandt Solutions Architect ANZ

Scalable Application. Mikalai Alimenkou

A Comparison of Clouds: Amazon Web Services, Windows Azure, Google Cloud Platform, VMWare and Others (Fall 2012)

ur skills.com

Last time. Today. IaaS Providers. Amazon Web Services, overview

Building Fault-Tolerant Applications on AWS October 2011

AWS Cloud for HPC and Big Data

Shadi Khalifa Database Systems Laboratory (DSL)

Introduction to Cloud Computing on Amazon Web Services (AWS) with focus on EC2 and S3. Horst Lueck

Thing Big: How to Scale Your Own Internet of Things.

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9a: Cloud Computing WHAT IS CLOUD COMPUTING? 2

Using ArcGIS for Server in the Amazon Cloud

Using ArcGIS for Server in the Amazon Cloud

Cloud Computing with Amazon Web Services and the DevOps Methodology.

TECHNOLOGY WHITE PAPER Jun 2012

Design for Failure High Availability Architectures using AWS

Last time. Today. IaaS Providers. Amazon Web Services, overview

Fault-Tolerant Computer System Design ECE 695/CS 590. Putting it All Together

TECHNOLOGY WHITE PAPER Jan 2016

Cloud Models and Platforms

Monitoring and Scaling My Application

AWS Storage: Minimizing Costs While Retaining Functionality

Web Application Deployment in the Cloud Using Amazon Web Services From Infancy to Maturity

Enterprise Cloud Computing with AWS. for internal partner use only

Amazon Web Services Student Tutorial

Web Application Hosting in the AWS Cloud Best Practices

Last time. Today. IaaS Providers. Amazon Web Services, overview

How To Choose Between A Relational Database Service From Aws.Com

Deploying for Success on the Cloud: EBS on Amazon VPC. Phani Kottapalli Pavan Vallabhaneni AST Corporation August 17, 2012

Amazon Relational Database Service. User Guide API Version

Getting Started with AWS. Web Application Hosting for Linux

Web Application Hosting in the AWS Cloud Best Practices

DLT Solutions and Amazon Web Services

Alfresco Enterprise on AWS: Reference Architecture

Preparing Your IT for the Holidays. A quick start guide to take your e-commerce to the Cloud

PCI on Amazon Web Services (AWS) What You Need To Know Understanding the regulatory roadmap for PCI on AWS

Build Your Own Performance Test Lab in the Cloud. Leslie Segal Testware Associate, Inc.

Logentries Insights: The State of Log Management & Analytics for AWS

Elastic Load Balancing. API Reference API Version

Cloud Computing For Bioinformatics

Amazon Compute - EC2 and Related Services

Scalability in the Cloud HPC Convergence with Big Data in Design, Engineering, Manufacturing

Service Organization Controls 3 Report

Smartronix Inc. Cloud Assured Services Commercial Price List

EXECUTIVE SUMMARY CONTENTS. 1. Summary 2. Objectives 3. Methodology and Approach 4. Results 5. Next Steps 6. Glossary 7. Appendix. 1.

Building. Applications. in the Cloud. Concepts, Patterns, and Projects. AAddison-Wesley. Christopher M. Mo^ar. Cape Town Sydney.

Introduction to DevOps on AWS

Getting Started with AWS. Computing Basics for Linux

Service Organization Controls 3 Report

Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

Amazon Web Services. Elastic Compute Cloud (EC2) and more...

Amazon AWS in.net. Presented by: Scott Reed

BUNGEE Quick Start Guide for AWS EC2 based elastic clouds

How To Use Aws.Com

Cloud Computing. Adam Barker

WE RUN SEVERAL ON AWS BECAUSE WE CRITICAL APPLICATIONS CAN SCALE AND USE THE INFRASTRUCTURE EFFICIENTLY.

Agenda. - Introduction to Amazon s Cloud - How ArcGIS users adopt Amazon s Cloud - Why ArcGIS users adopt Amazon s Cloud - Examples

How To Manage An Orgsync Database On An Amazon Cloud 2 Instance

Deploying for Success on the Cloud: EBS on Amazon VPC Session ID#11312

MANAGE YOUR AMAZON AWS ASSETS USING BOTO

Data Center Infrastructure Innovation

Chapter 3 Cloud Infrastructure. Cloud Computing: Theory and Practice. 1

Designing Apps for Amazon Web Services

Storing and Processing Sensor Networks Data in Public Clouds

Elastic Load Balancing Auto Scaling

AWS Lambda. Developer Guide

319 MANAGED HOSTING TECHNICAL DETAILS

Innovative Geschäftsmodelle Ermöglicht durch die AWS Cloud

Financial Services Grid Computing on Amazon Web Services January 2013 Ian Meyers

Intro to AWS: Storage Services

HADOOP BIG DATA DEVELOPER TRAINING AGENDA

Background on Elastic Compute Cloud (EC2) AMI s to choose from including servers hosted on different Linux distros

Transcription:

Università degli studi di Roma Tor Vergata Facoltà di Ingegneria!"#$%&'()*'+),-./)0' 12/#'+.3-)04,.' 0.3-)04,.5.&672&.,%"#87.4' 9##+':,%-.;),0' 2

9##+':,%-.;),0'<)#42,)0' 3 9##+':,%-.;),0'<)#42,)0' E.Casalicchio, L.Silvestri "Architectures for autonomic service management in cloud-based systems," Computers and Communications (ISCC), 2011 IEEE Symposium on, pp.161-166, June 28 2011-July 1 2011, Kerkyra (Corfù), Greece 4

!"#$%&'()*'+),-./)0' Compute Amazon Elastic Compute Cloud (EC2) Amazon Elastic MapReduce Auto Scaling Elastic Load Balancing Storage Simple Storage Service (S3) Elastic Block Store (EBS) Database Amazon SimpleDB Amazon Relational Database Service (RDS) Amazon DynamoDB Messaging Simple Queue Service (SQS) Simple Notification Service (SNS) Networking & Content Delivery Amazon Route 53 Amazon Virtual Private Cloud (VPC) Amazon CloudFront Deployment & Management Amazon CloudWatch AWS Elastic Beanstalk AWS Identity and Access Management (IAM) 5!"#$%&'=>8' Provides resizable compute capacity in the cloud Allows to increase/decrease capacity (start/ stop instances) within minutes Pay-per-use on hourly basis From one to thousands of server instances can be launched simultaneously Guarantees complete control over instances root SSH access, GUI, command line tools, APIs offers advanced services Elastic Block Store Elastic Load Balancer CloudWatch + AutoScaling Elastic IP Amazon Elastic Beanstalk 6

=>8'1%/#?%&0' Regions geographically dispersed consist of one or more availability zones Current regions:us East (Northern Virginia), US West (Oregon),US West (Northern California), EU (Ireland), Asia Pacific (Singapore), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (Sao Paulo) Special Region AWS GovCloud Availability Zones distinct locations in the same region engineered to be insulated from failures in other availability zones used to protect applications from failure of a single location Load Balancing allowed only between different Availability Zones in the same Region not supported between different Regions 7 =>8'9&04#&/)'@AB)0' On-Demand Instances billing per-hour with no long-term commitments Reserved Instances one-time payment to reserve an instance for 1 or 3 years significant discount on hourly usage charge Spot Instances enable users to bid for unused EC2 capacity Spot Price fluctuates periodically depending on supply of/demand for Spot Instance capacity 8

=>8'9&04#&/)0' C'=>8'>%"B24)'D&.4'B,%-.;)0'4E)')F2.-#3)&4'>:D'/#B#/.4A'%G'#' C7HIC78'JK$'8HHL'MB4),%&'%,'8HHL'N)%&'B,%/)00%,' 9 =>8':,./)0'OD+'=#04P' 10

=>8':,./)0'O=DP' 11 =>8'!;;.?%&#3'+),-./)0':,./)0' Load Balancing 12

=>8'9&4),G#/)' AWS Management Console Command Line Tools Java-based command-line client AWS SDKS (available for Java, PHP and.net) Third Party Libraries Query and SOAP APIs 13!"#$%&'+."B3)'+4%,#6)'+),-./)' +4%,#6)'G%,'4E)'9&4),&)4' <)#42,)0' Q,.4)R',)#;R';)3)4)'%&'%*S)/40'/%&4#.&.&6'G,%"'C'*A4)'4%'T'@U')#/E' )#/E'%*S)/4'.0'04%,);'.&'#'*2/V)4'#&;',)4,.)-);'-.#'#'2&.F2)'V)A' K@@:'O;)G#234P'%,'U.4@%,,)&4';%Q&3%#;'B,%4%/%3' 02BB%,40'G%,'"23?B3)'#//)00'/%&4,%3'")/E#&.0"0R'#0'Q)33'#0')&/,AB?%&'G%,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'X)6.%&'.&4)6,#?%&'Q.4E'=3#0?/'`#BX);2/)' 16

!"#$%&'+."B3)'h2)2)'+),-./)' `)00#6)'F2)2.&6'0),-./)'4E#4')&#*3)0'#0A&/E,%&%20'")00#6)' *#0);'/%""2&./#?%&'*)4Q))&';.04,.*24);'/%"B%&)&40'%G'#&' #BB3./#?%&' (E)&'#'")00#6)'.0',)/).-);R'.4'*)/%")0'k3%/V);l'QE.3)'*).&6' B,%/)00);' 9G'4E)'")00#6)'B,%/)00.&6'G#.30R'4E)'3%/V'Q.33')bB.,)'#&;'4E)'")00#6)' Q.33'*)'#-#.3#*3)'#6#.&' 17!"#$%&'X%24)'TW' K.6E3A'#-#.3#*3)'#&;'0/#3#*3)'^_+'Q)*'0),-./)'!&0Q),0'^_+'F2),.)0'Q.4E'3%Q'3#4)&/A'*A'20.&6'#'63%*#3' &)4Q%,V'%G'^_+'0),-),0' h2),.)0'#,)'#24%"#?/#33a',%24);'4%'4e)'&)#,)04'^_+'0),-),' ^)0.6&);'4%'#24%"#?/#33A'0/#3)'4%'E#&;3)'-),A'3#,6)'F2),A' -%32")0'Q.4E%24'#&A'E2"#&'.&4),-)&?%&' :,./.&6' K%04);'j%&)0' \H7TH'B),'E%04);'$%&)'['"%&4E'G%,'4E)'Z,04'8T'E%04);'$%&)0' \H7CH'B),'E%04);'$%&)'['"%&4E'G%,'#;;.?%&#3'E%04);'$%&)0' h2),.)0' \H7TH'B),'".33.%&'F2),.)0'm'Z,04'C'U.33.%&'F2),.)0'['"%&4E' \H78T'B),'".33.%&'F2),.)0'm'%-),'C'U.33.%&'F2),.)0'['"%&4E' 18

!"#$%&'>3%2;<,%&4' ()*'0),-./)'G%,'/%&4)&4';)3.-),A' ;)3.-),0'A%2,'04#?/'#&;'04,)#".&6'/%&4)&4'20.&6'#'63%*#3'&)4Q%,V'%G');6)' 3%/#?%&0' X)F2)040'G%,'A%2,'%*S)/40'#,)'#24%"#?/#33A',%24);'4%'4E)'&)#,)04');6)' 3%/#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6'B#,#")4),0'G233A'/204%".$#*3)'4E,%26E' 4E)'!(+'`#&#6)")&4'>%&0%3)' :,./.&6a'&%'#;;.?%&#3'/E#,6)'G%,'=3#0?/'U)#&04#3V'R'4E)'20),'B#A0'%&3A'G%,' 4E)'2&;),3A.&6'!(+',)0%2,/)0'4E#4'A%2,'#BB3./#?%&'/%&02")07'' 20

!"#$%&'=3#0?/'U3%/V'+4%,)' Offers persistent storage for EC2 instances Provides off-instance storage that persist independently from the life of an instance EBS volumes from 1GB to 1 TB EBS volumes can be used ad instance s boot partitions or attached to running instances as standard block devices A volume can only be attached to one instance at a time, but many volumes can be attached to a single instance EBS volumes can be attached only to instances in the same Availability Zone EBS volumes automatically replicated within the same Availability Zone to avoid data loss EBS provides the ability to create point-in-time snapshots of volumes that can be stored using S3 21 =3#0?/'9:'n'o.,42#3':,.-#4)'>3%2;' Elastic IP addresses are not associated with a particular instance but with a user account the user control an elastic IP address address until he explicitly release it allow to mask instance or Availability Zone failures by quickly remapping the Elastic IP address to another instance/load balancer Virtual Private Cloud enables enterprises to connect their existing infrastructure to a set of isolated AWS compute resources via a Virtual Private Network (VPN) connection 22

!"#$%&'>3%2;(#4/E' Provides monitoring for AWS cloud resources and applications CloudWatch is Metric repository AWS services put metrics in the repository users retrieve statistics based on those metrics 23 >3%2;(#4/E'/%&/)B40' Metric a time ordered set of data points PutMetricData API allows users to create custom metrics Statistics metric data aggregations over specified periods of time available statistics: Minimum, Maximum, Sum, Average, SampleCount can be retrieved by GetMetricStatistics API Period length of time associated with a specific CloudWatch statistic expressed in seconds, range from 60 (one minute) to 1209600 (two weeks) Alarm watches a single metric over a specified time period performs one or more actions based on the value of the metric relative to a given threshold over a number of time periods 24

EC2 metrics CPUUTilization! >3%2;(#4/E'")4,./0' DiskReadOps/DiskWriteOps! DiskReadBytes/DiskWriteBytes! NetworkIn/NetworkOut! Elastic Load Balancing Metrics Latency! RequestCount! HealthyHostCount/UnHealthyHostCount! Count of HTTP Response Codes (2xx, 3xx, 4xx, 5xx)generated by Load Balancer or back-end instances 25 >3%2;(#4/E'9&4),G#/)' Command Line Tools Libraries (JAVA, PHP, Python, Ruby, Android, ios, Wndows and.net) Query API HTTP/HTTPS GET or POST requests AWS Management Console 26

>3%2;(#4/E'!3#,"0'n'!24%'+/#3.&6' An alarm watches a single metric over a time period and performs one or more actions based on the value of the metric relative to a given threshold over a number of time periods Possible states: OK, ALARM, INSUFFICIENT_DATA! When an alarm changes its state an action is invoked notification through Amazon SNS Auto Scaling policy Example Threshold = 3 minimum breach = 3 periods 27!24%'+/#3.&6' Auto Scaling allows to scale EC2 capacity up or down automatically according to user defined conditions Enabled by Amazon CloudWatch uses CloudWatch alarms 28

!24%'+/#3.&6':%3./.)0' Auto Scaling policies defines action to take when an alarm state changes For every monitored event 2 policies should be defined a scale-up policy a scale-down policy A policy can be created using PutScalingPolicy API with the following parameters: AdjustmentType: possible values are ChangeInCapacity, ExactCapacity, PercentChangeInCapacity! Cooldown: amount of time after a scaling activity completes before any further trigger-related scaling activities can start PolicyName! ScalingAdjustment: the number of instances by which to scale (positive or negative) 29 =3#0?/'1%#;'U#3#&/.&6' Automatically distributes incoming traffic across multiple EC2 instances 30

=1U'G)#42,)0' Detects unhealthy instances within a poll and automatically reroute traffic to healthy instances Can be enabled across multiple Availability Zones within a Region NOT between Availability Zones in different Regions! Uses a Least Loaded balancing policy Supports sticky sessions load balancer generatedhttp cookies (browser based session lifetime) application-generated HTTP cookies (application-specific session lifetimes) Supports HTTPS Enables the client to define an application healthcheck for the instances through the following parameters Threshold, Interval, Target, Timeout, UnhealthyThreshold! Provides APIs to add/remove instances RegisterInstancesWithLoadBalancer! DeregisterInstancesWithLoadBalancer! 31 32

!24%&%"./'>3%2;'!,/E.4)/42,)' 33!24%&%"./'>3%2;'9"B3)")&4#?%&' 34

=b#"b3)a'`);.#q.v.'%&'=>8' To test the AWS Auto Scaling capabilities we deployed Mediawiki on Amazon EC2 MediaWiki is a free software open source wiki package written in PHP We populated the DB with a dump from Wikipedia We replicated traffic from a real Wikipedia workload trace properly reduced 35 =b#"b3)a'@)04*);'0)42b' 1-10 Amazon EC2 m1.small instances 32 bit Linux VMs with 1 EC2 Compute Unit and 1.7 GB memory Each VM replicates the front-end of the MediaWiki web application Apache 2.2.16 is used as application server 1 Amazon EC2 m1.large instance 64 bit Linux VM with 4 EC2 Compute Units (2 cores) and 7.5 GB memory MySQL 5.1.52 is used to implement the back-end tier The system is dimensioned to guarantee that the centralized DB never represents the system bottleneck 1 Amazon Elastic Load Balancer 1 EC2 m1.small instance as workload generator All components run in the same Availability Zone the effects of network latency are reduced at the minimum 36

=b#"b3)a'!24%'+/#3.&6':%3./.)0' Utilization-based, one alarm (UT-1AL) add 1 instance if average CPU utilization > 62% remove 1 instance if average CPU utilization < 50% Utilization-based, two alarms (UT-2AL) add 2 istances if utilization > 70%, 1 if utilization>62% remove 1 instance if utilization < 50%, 2 if utilization < 25% Latency-based, one alarm (LAT-1AL) add 1 instance if latency (average response time seen by the ELB) is > 0.2 seconds remove 1 instance if average CPU utilization < 50% Latency based, two alarms (LAT-2AL) add 2 istances if latency > 0.5 sec, 1 if latency > 0.2 sec remove 1 instances if utilization < 50%,2 if utilization < 25% 37 =>8'B,%*3)"0' ELB bugs problems with start/stop instances, better use launch/terminate if an instance crashes it remains forever in unhealthy status unhealthy instances are not automatically replaced CloudWatch problems metric variation over a time interval is missing request count considers only the requests processed by the load balancer (system throughput behind the ELB) a metric to know the number ofrequest arrived at the load balancer is missing General Problems no real-time billing performance level of a single VM is quite variable load balancing policy cannot be customized 38