SlideShare una empresa de Scribd logo
1 de 66
Descargar para leer sin conexión
November 13, 2014 | Las Vegas, NV 
Mimi Jiang, AdobeConstantin Gonzalez, AWS
•Speed, agility, and innovation 
•Focus on your business 
•Go global in minutes
Ecosystem 
Global Footprint 
New Features 
New Services 
More AWS Usage 
More Infrastructure 
Lower Infrastructure Costs 
Reduced Prices 
More Customers 
Infrastructure Innovation 
45 price reductions since 2006 
Economies 
of Scale
aws.amazon.com/premiumsupport/trustedadvisor/ 
Free with Business or Enterprise Support
Monday 
Friday 
End of Vacation Season 
35%saved
"LaunchConfig": { 
"Type" : "AWS::AutoScaling::LaunchConfiguration", 
"Metadata" : { 
"AWS::CloudFormation::Init" : { 
"config" : { 
… packages, sources, files, services … 
} 
} 
}, 
"Properties": { 
"ImageId" : "ami-149f7863", 
"InstanceType" : "m1.small", 
"SecurityGroups" : [ {"Ref" : "WebServerSecurityGroup"}], 
"KeyName" : "MySSHKey", 
"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ 
"#!/bin/bash -vn", 
… your user data script … 
]]}} 
} 
}
"WebServerGroup" : { 
"Type" : "AWS::AutoScaling::AutoScalingGroup", 
"Properties" : { 
"AvailabilityZones" : [ 
"us-east-1a", 
"us-east-1b", 
"us-east-1c", 
], 
"LaunchConfigurationName" : { "Ref" : "LaunchConfig" }, 
"MinSize" : “3", 
"MaxSize" : “6", 
"DesiredCapacity" : “3", 
"LoadBalancerNames" : [ { "Ref" : "ElasticLoadBalancer" } ] 
} 
}
{ adobe.io} 
Running Lean Architectures 
in AWS 
Mimi Jiang | Performance & Reliability, adobe.io
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
New era of creativity 
Adobe Creative SDK 
Adobe Ink & Slide
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
API Gateway 
API Management Services 
API Console 
{adobe.io}: Adobe’s API platform 
3rdparty apps 
Adobe apps 
{adobe.io} 
API services
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
{ adobe.io }: AWS deployment architecture 
API Consumers 
Availability Zone 1 
Private Subnet 
Availability Zone 2 
Public Subnet 
Private Subnet 
Auto Scaling Group 
Auto Scaling Group 
Region (US East, EU, AP, US West) 
Amazon 
Route 
53 
Public Subnet
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Instance type sizing 
Recommended steps: 
Define application characteristics 
Shortlist instance types 
Analyze –performance, cost, & resiliency 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
{adobe.io} use case 
Application characteristics: 
InstanceType 
On-DemandCost 
vCPU 
Memory 
(GB) 
Storage 
(GB) 
Network Performance 
cc2.8xlarge 
$2.40 
32 
60.5 
4x840 
10 Gigabit * 
m3.2xlarge 
$0.56 
8 
30 
2x80 
High 
C3.2xlarge 
$0.42 
8 
15 
2x80 
High 
CPU intensive traffic 
Minimum 8 core CPU 
Support for heavy payloads 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
19168 
21655 
28037 
23292 
30003 
31919 
28357 
32699 
38962 
2000 users 
4000 users 
6000 users 
CPU Test 
Single node (requests/sec) 
m3.2xlarge 
c3.2xlarge 
cc2.8xlarge 
{adobe.io} performance analysis 
35 
39 
113 
Network Test 
Single node (requests/sec) 
cc2.8xlarge 
c3.2xlarge 
m3.2xlarge 
CPU: 30% 
CPU: 90-95% 
Architect 
Total bandwidth = Network In + Network Out 
5 
4 
1 
3:1
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
{adobe.io}cost analysis 
$307.44 
$409.92 
$1,756.80 
c3.2xlarge 
m3.2xlarge 
cc2.8xlarge 
Monthly on-demand cost 
per node (US East) 
$2.40/hr 
$0.56/hr 
$0.42/hr 
Architect 
0 
500 
1000 
1500 
2000 
2500 
3000 
3500 
4000 
4500 
30K req/sec 
60K req/sec 
100K req/sec 
200K req/sec 
Cost 
$/Month vs. Throughput 
cc2.8xlarge 
m3.2xlarge 
c3.2xlarge 
30%  
16%  
30% 
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
{adobe.io} resiliency analysis 
AZ1 
AZ2 
Region 
cc2.8xlarge 
AZ1 
AZ2 
Region 
c3.2xlarge / m3.2xlarge 
VS 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
{adobe.io} Decision & takeaways 
Instance type selected: c3.2xlarge 
What we learned 
•Match instance type with expected workload 
•Smaller instance types provide better granularity 
•Enhanced networking is available in c3, r3, & i2 instance types 
•Boot time varies between different instance types 
•Amazon CloudWatch detailed monitoring gives better granularity 
•Instance type differs by region (cost, availability) 
•Set a cadence to repeat 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Scaling mechanisms 
Event-based scaling 
•Overprovision for sharp traffic increase 
** Prewarmyour load balancer 
•Observe traffic pattern & scale down 
Schedule-based scaling 
•Match scaling with workload at different times 
•Scale down dev& test environments 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
AutoScaling 
•Use for less steep traffic increase 
•Scale up fast, scale down slow 
•** Remember you are charged hourly 
•Set triggers: CPU, network, memory 
•Avoid multiple scaling triggers per Auto Scaling group 
Architect 
Auto Scaling policy example: 
Scale up: +2 instances if CPU utilization > 70% for 2 minutes 
Scale down: -2 instances if CPU utilization <= 40% for 20 minutes 
Cooldown: 300 seconds
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Monitoring tips 
•Tailormonitoring strategy to application characteristics 
•Monitor both cost & usage 
•Tagyour instances 
•Establish thresholds/alerts 
•Analyze & adjust resource usage often 
•Toolsmake it easier 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Open source—Netflix ICE 
•Cost & usage reporting 
•Uses AWS Programmatic Billing Access 
•Maintains knowledge of: 
•Accounts, regions, services, usage types, cost/usage categories 
https://github.com/Netflix/ice 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Commercial tool—Cloudability 
usage comparison 
underutilized instances 
daily summary 
Architect
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Wrap-up 
•Cost, performance, & resiliency have equal weight 
•Embrace failure, architect for it 
•Turn off unused capacity, automate it! 
•Benefit from auto-scaling, but be careful! 
•Monitor & frequently evolve your architecture 
Check out these other sessions: 
•SDD402 –Amazon ElastiCacheDeep Dive (Frank Wiebe, Principal Scientist, Adobe) 
•ENT207 –Creating a Culture of Cost Management in Your Organization (J.R. Stoment, Chief Customer Officer, Cloudability)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 
Contact me: yjiang@adobe.com 
Thank You!
1y RI 
Break even 
3y RI 
Break even
On-Demand: 
$0.24 
$0.028 (11.7%) 
$0.026 (10,8%) 
$3.28(1367%)
20% 64%
Caching/Optimization: 
80% saved 
Cacheflush 
DynamicDynamoDB: 
20% saved 
Growth + new features
Simple, more reliable, lower cost
http://bit.ly/awsevals

Más contenido relacionado

La actualidad más candente

AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
Amazon Web Services
 

La actualidad más candente (20)

WKS407 Wild Rydes Takes Off – The Dawn of a New Unicorn
WKS407 Wild Rydes Takes Off – The Dawn of a New UnicornWKS407 Wild Rydes Takes Off – The Dawn of a New Unicorn
WKS407 Wild Rydes Takes Off – The Dawn of a New Unicorn
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
 
Stream Processing in SmartNews #jawsdays
Stream Processing in SmartNews #jawsdaysStream Processing in SmartNews #jawsdays
Stream Processing in SmartNews #jawsdays
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
 
Self-Service Supercomputing
Self-Service SupercomputingSelf-Service Supercomputing
Self-Service Supercomputing
 
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
 
Your First 10 million Users on the AWS Cloud
Your First 10 million Users on the AWS CloudYour First 10 million Users on the AWS Cloud
Your First 10 million Users on the AWS Cloud
 
Getting started with the hybrid cloud enterprise backup and recovery - Toronto
Getting started with the hybrid cloud   enterprise backup and recovery - TorontoGetting started with the hybrid cloud   enterprise backup and recovery - Toronto
Getting started with the hybrid cloud enterprise backup and recovery - Toronto
 
Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)
 
getting started with amazon aurora
getting started with amazon auroragetting started with amazon aurora
getting started with amazon aurora
 
AWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
AWS March 2016 Webinar Series - Managed Database Services on Amazon Web ServicesAWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
AWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
 
AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
AWS Summit London 2014 | Partners & Solutions Track | What's New at AWS?
 
(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS
 
Trustpilot
TrustpilotTrustpilot
Trustpilot
 
Running a Highly Scalable Immersive Media Solution on AWS Using EC2 Spot Inst...
Running a Highly Scalable Immersive Media Solution on AWS Using EC2 Spot Inst...Running a Highly Scalable Immersive Media Solution on AWS Using EC2 Spot Inst...
Running a Highly Scalable Immersive Media Solution on AWS Using EC2 Spot Inst...
 
BDA402 Deep Dive: Log Analytics with Amazon Elasticsearch Service
BDA402 Deep Dive: Log Analytics with Amazon Elasticsearch ServiceBDA402 Deep Dive: Log Analytics with Amazon Elasticsearch Service
BDA402 Deep Dive: Log Analytics with Amazon Elasticsearch Service
 
Get the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #WinningGet the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #Winning
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
Agile BI - Pop-up Loft Tel Aviv
Agile BI - Pop-up Loft Tel AvivAgile BI - Pop-up Loft Tel Aviv
Agile BI - Pop-up Loft Tel Aviv
 

Destacado

Optimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWSOptimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWS
Amazon Web Services
 

Destacado (20)

Mastering the fundamentals of AWS billing 8-20-15
Mastering the fundamentals of AWS billing 8-20-15Mastering the fundamentals of AWS billing 8-20-15
Mastering the fundamentals of AWS billing 8-20-15
 
RMG205 Decoding Your AWS Bill - - AWS re: Invent 2012
RMG205 Decoding Your AWS Bill - - AWS re: Invent 2012RMG205 Decoding Your AWS Bill - - AWS re: Invent 2012
RMG205 Decoding Your AWS Bill - - AWS re: Invent 2012
 
AWS Cost Control
AWS Cost ControlAWS Cost Control
AWS Cost Control
 
Optimizing AWS S3 storage costs and usage
Optimizing AWS S3 storage costs and usageOptimizing AWS S3 storage costs and usage
Optimizing AWS S3 storage costs and usage
 
Optimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWSOptimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWS
 
Best Practices for AWS Cloud Cost Optimization
Best Practices for AWS Cloud Cost OptimizationBest Practices for AWS Cloud Cost Optimization
Best Practices for AWS Cloud Cost Optimization
 
(SEC301) Encryption and Key Management in AWS | AWS re:Invent 2014
(SEC301) Encryption and Key Management in AWS | AWS re:Invent 2014(SEC301) Encryption and Key Management in AWS | AWS re:Invent 2014
(SEC301) Encryption and Key Management in AWS | AWS re:Invent 2014
 
(ARC304) Designing for SaaS: Next-Generation Software Delivery Models on AWS ...
(ARC304) Designing for SaaS: Next-Generation Software Delivery Models on AWS ...(ARC304) Designing for SaaS: Next-Generation Software Delivery Models on AWS ...
(ARC304) Designing for SaaS: Next-Generation Software Delivery Models on AWS ...
 
AWS Cost optimization at scale
AWS Cost optimization at scaleAWS Cost optimization at scale
AWS Cost optimization at scale
 
Finding hidden waste in your AWS infrastructure - 2/11/16
Finding hidden waste in your AWS infrastructure - 2/11/16Finding hidden waste in your AWS infrastructure - 2/11/16
Finding hidden waste in your AWS infrastructure - 2/11/16
 
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
 
(APP202) Deploy, Manage, Scale Apps w/ AWS OpsWorks & AWS Elastic Beanstalk |...
(APP202) Deploy, Manage, Scale Apps w/ AWS OpsWorks & AWS Elastic Beanstalk |...(APP202) Deploy, Manage, Scale Apps w/ AWS OpsWorks & AWS Elastic Beanstalk |...
(APP202) Deploy, Manage, Scale Apps w/ AWS OpsWorks & AWS Elastic Beanstalk |...
 
Optimizing Your AWS Applications and Usage to Reduce Costs
Optimizing Your AWS Applications and Usage to Reduce CostsOptimizing Your AWS Applications and Usage to Reduce Costs
Optimizing Your AWS Applications and Usage to Reduce Costs
 
Optimizing for Cost in the AWS Cloud - 5 Ways to Further Save - AWS Summit 20...
Optimizing for Cost in the AWS Cloud - 5 Ways to Further Save - AWS Summit 20...Optimizing for Cost in the AWS Cloud - 5 Ways to Further Save - AWS Summit 20...
Optimizing for Cost in the AWS Cloud - 5 Ways to Further Save - AWS Summit 20...
 
How to Design for High Availability & Scale with AWS
How to Design for High Availability & Scale with AWSHow to Design for High Availability & Scale with AWS
How to Design for High Availability & Scale with AWS
 
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
 
AWS Cost Allocation best practices: How high-growth businesses succeed
AWS Cost Allocation best practices: How high-growth businesses succeedAWS Cost Allocation best practices: How high-growth businesses succeed
AWS Cost Allocation best practices: How high-growth businesses succeed
 
AWS re:Invent 2016: Metering Big Data at AWS: From 0 to 100 Million Records i...
AWS re:Invent 2016: Metering Big Data at AWS: From 0 to 100 Million Records i...AWS re:Invent 2016: Metering Big Data at AWS: From 0 to 100 Million Records i...
AWS re:Invent 2016: Metering Big Data at AWS: From 0 to 100 Million Records i...
 
AWS Webcast - High Availability with Route 53 DNS Failover
AWS Webcast - High Availability with Route 53 DNS FailoverAWS Webcast - High Availability with Route 53 DNS Failover
AWS Webcast - High Availability with Route 53 DNS Failover
 
Deep Dive - Infrastructure as Code
Deep Dive - Infrastructure as CodeDeep Dive - Infrastructure as Code
Deep Dive - Infrastructure as Code
 

Similar a (ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AWS re:Invent 2014

Opinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & BuildersOpinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & Builders
Daniel Zivkovic
 
Understanding the Windows Azure platform - june
Understanding the Windows Azure platform  - juneUnderstanding the Windows Azure platform  - june
Understanding the Windows Azure platform - june
DavidGristwood
 
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
Amazon Web Services Korea
 

Similar a (ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AWS re:Invent 2014 (20)

NEW LAUNCH! Delivering Powerful Graphics-Intensive Applications from the AWS ...
NEW LAUNCH! Delivering Powerful Graphics-Intensive Applications from the AWS ...NEW LAUNCH! Delivering Powerful Graphics-Intensive Applications from the AWS ...
NEW LAUNCH! Delivering Powerful Graphics-Intensive Applications from the AWS ...
 
AWS 101
AWS 101AWS 101
AWS 101
 
Introduction to Cloud Computing with Amazon Web Services
Introduction to Cloud Computing with Amazon Web Services Introduction to Cloud Computing with Amazon Web Services
Introduction to Cloud Computing with Amazon Web Services
 
IP Expo - What is AWS?
IP Expo - What is AWS?IP Expo - What is AWS?
IP Expo - What is AWS?
 
Opinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & BuildersOpinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & Builders
 
Born in the Cloud; Build it Like a Startup
Born in the Cloud; Build it Like a StartupBorn in the Cloud; Build it Like a Startup
Born in the Cloud; Build it Like a Startup
 
AWS Meetup Fort Lauderdale Re:invent Recap
AWS Meetup Fort Lauderdale Re:invent RecapAWS Meetup Fort Lauderdale Re:invent Recap
AWS Meetup Fort Lauderdale Re:invent Recap
 
re:Invent Recap-AWSMeetup
re:Invent Recap-AWSMeetupre:Invent Recap-AWSMeetup
re:Invent Recap-AWSMeetup
 
Understanding the Windows Azure platform - june
Understanding the Windows Azure platform  - juneUnderstanding the Windows Azure platform  - june
Understanding the Windows Azure platform - june
 
Well-Architected for Security: Advanced Session
Well-Architected for Security: Advanced SessionWell-Architected for Security: Advanced Session
Well-Architected for Security: Advanced Session
 
NEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the EdgeNEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the Edge
 
AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
 
Enterprise Cloud Architecture Best Practices
Enterprise Cloud Architecture Best PracticesEnterprise Cloud Architecture Best Practices
Enterprise Cloud Architecture Best Practices
 
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
일본 시골 개발자의 AWS 활용기 - AWS Summit Seoul 2017
 
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
 
AWS re:Invent 2016: Born in the Cloud; Built Like a Startup (ARC205)
AWS re:Invent 2016: Born in the Cloud; Built Like a Startup (ARC205)AWS re:Invent 2016: Born in the Cloud; Built Like a Startup (ARC205)
AWS re:Invent 2016: Born in the Cloud; Built Like a Startup (ARC205)
 
News from re:Invent 2019
News from re:Invent 2019News from re:Invent 2019
News from re:Invent 2019
 
AWS Webcast - AWS 101 - Journey to the AWS Cloud: Introduction to AWS
AWS Webcast - AWS 101 - Journey to the AWS Cloud: Introduction to AWSAWS Webcast - AWS 101 - Journey to the AWS Cloud: Introduction to AWS
AWS Webcast - AWS 101 - Journey to the AWS Cloud: Introduction to AWS
 
Optimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWSOptimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWS
 
AWS Summit Auckland - Introducing Well-Architected for Developers
AWS Summit Auckland  - Introducing Well-Architected for DevelopersAWS Summit Auckland  - Introducing Well-Architected for Developers
AWS Summit Auckland - Introducing Well-Architected for Developers
 

Más de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AWS re:Invent 2014

  • 1. November 13, 2014 | Las Vegas, NV Mimi Jiang, AdobeConstantin Gonzalez, AWS
  • 2.
  • 3.
  • 4. •Speed, agility, and innovation •Focus on your business •Go global in minutes
  • 5.
  • 6.
  • 7. Ecosystem Global Footprint New Features New Services More AWS Usage More Infrastructure Lower Infrastructure Costs Reduced Prices More Customers Infrastructure Innovation 45 price reductions since 2006 Economies of Scale
  • 8.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Monday Friday End of Vacation Season 35%saved
  • 16.
  • 17.
  • 18.
  • 19. "LaunchConfig": { "Type" : "AWS::AutoScaling::LaunchConfiguration", "Metadata" : { "AWS::CloudFormation::Init" : { "config" : { … packages, sources, files, services … } } }, "Properties": { "ImageId" : "ami-149f7863", "InstanceType" : "m1.small", "SecurityGroups" : [ {"Ref" : "WebServerSecurityGroup"}], "KeyName" : "MySSHKey", "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -vn", … your user data script … ]]}} } }
  • 20. "WebServerGroup" : { "Type" : "AWS::AutoScaling::AutoScalingGroup", "Properties" : { "AvailabilityZones" : [ "us-east-1a", "us-east-1b", "us-east-1c", ], "LaunchConfigurationName" : { "Ref" : "LaunchConfig" }, "MinSize" : “3", "MaxSize" : “6", "DesiredCapacity" : “3", "LoadBalancerNames" : [ { "Ref" : "ElasticLoadBalancer" } ] } }
  • 21.
  • 22. { adobe.io} Running Lean Architectures in AWS Mimi Jiang | Performance & Reliability, adobe.io
  • 23. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. New era of creativity Adobe Creative SDK Adobe Ink & Slide
  • 24. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. API Gateway API Management Services API Console {adobe.io}: Adobe’s API platform 3rdparty apps Adobe apps {adobe.io} API services
  • 25. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. { adobe.io }: AWS deployment architecture API Consumers Availability Zone 1 Private Subnet Availability Zone 2 Public Subnet Private Subnet Auto Scaling Group Auto Scaling Group Region (US East, EU, AP, US West) Amazon Route 53 Public Subnet
  • 26. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Instance type sizing Recommended steps: Define application characteristics Shortlist instance types Analyze –performance, cost, & resiliency Architect
  • 27. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. {adobe.io} use case Application characteristics: InstanceType On-DemandCost vCPU Memory (GB) Storage (GB) Network Performance cc2.8xlarge $2.40 32 60.5 4x840 10 Gigabit * m3.2xlarge $0.56 8 30 2x80 High C3.2xlarge $0.42 8 15 2x80 High CPU intensive traffic Minimum 8 core CPU Support for heavy payloads Architect
  • 28. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 19168 21655 28037 23292 30003 31919 28357 32699 38962 2000 users 4000 users 6000 users CPU Test Single node (requests/sec) m3.2xlarge c3.2xlarge cc2.8xlarge {adobe.io} performance analysis 35 39 113 Network Test Single node (requests/sec) cc2.8xlarge c3.2xlarge m3.2xlarge CPU: 30% CPU: 90-95% Architect Total bandwidth = Network In + Network Out 5 4 1 3:1
  • 29. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. {adobe.io}cost analysis $307.44 $409.92 $1,756.80 c3.2xlarge m3.2xlarge cc2.8xlarge Monthly on-demand cost per node (US East) $2.40/hr $0.56/hr $0.42/hr Architect 0 500 1000 1500 2000 2500 3000 3500 4000 4500 30K req/sec 60K req/sec 100K req/sec 200K req/sec Cost $/Month vs. Throughput cc2.8xlarge m3.2xlarge c3.2xlarge 30%  16%  30% 
  • 30. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. {adobe.io} resiliency analysis AZ1 AZ2 Region cc2.8xlarge AZ1 AZ2 Region c3.2xlarge / m3.2xlarge VS Architect
  • 31. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. {adobe.io} Decision & takeaways Instance type selected: c3.2xlarge What we learned •Match instance type with expected workload •Smaller instance types provide better granularity •Enhanced networking is available in c3, r3, & i2 instance types •Boot time varies between different instance types •Amazon CloudWatch detailed monitoring gives better granularity •Instance type differs by region (cost, availability) •Set a cadence to repeat Architect
  • 32. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Scaling mechanisms Event-based scaling •Overprovision for sharp traffic increase ** Prewarmyour load balancer •Observe traffic pattern & scale down Schedule-based scaling •Match scaling with workload at different times •Scale down dev& test environments Architect
  • 33. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AutoScaling •Use for less steep traffic increase •Scale up fast, scale down slow •** Remember you are charged hourly •Set triggers: CPU, network, memory •Avoid multiple scaling triggers per Auto Scaling group Architect Auto Scaling policy example: Scale up: +2 instances if CPU utilization > 70% for 2 minutes Scale down: -2 instances if CPU utilization <= 40% for 20 minutes Cooldown: 300 seconds
  • 34. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Monitoring tips •Tailormonitoring strategy to application characteristics •Monitor both cost & usage •Tagyour instances •Establish thresholds/alerts •Analyze & adjust resource usage often •Toolsmake it easier Architect
  • 35. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Open source—Netflix ICE •Cost & usage reporting •Uses AWS Programmatic Billing Access •Maintains knowledge of: •Accounts, regions, services, usage types, cost/usage categories https://github.com/Netflix/ice Architect
  • 36. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Commercial tool—Cloudability usage comparison underutilized instances daily summary Architect
  • 37. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Wrap-up •Cost, performance, & resiliency have equal weight •Embrace failure, architect for it •Turn off unused capacity, automate it! •Benefit from auto-scaling, but be careful! •Monitor & frequently evolve your architecture Check out these other sessions: •SDD402 –Amazon ElastiCacheDeep Dive (Frank Wiebe, Principal Scientist, Adobe) •ENT207 –Creating a Culture of Cost Management in Your Organization (J.R. Stoment, Chief Customer Officer, Cloudability)
  • 38. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Contact me: yjiang@adobe.com Thank You!
  • 39.
  • 40. 1y RI Break even 3y RI Break even
  • 41.
  • 42.
  • 43.
  • 44.
  • 45. On-Demand: $0.24 $0.028 (11.7%) $0.026 (10,8%) $3.28(1367%)
  • 46.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53. Caching/Optimization: 80% saved Cacheflush DynamicDynamoDB: 20% saved Growth + new features
  • 54.
  • 55.
  • 56.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.