SlideShare a Scribd company logo
1 of 50
COST OPTIMIZATION

Glen Robinson– Solutions Architect
Elastic Capacity
Elasticity is a fundamental
property of the cloud that drives
 many of its economic benefits
When you turn off your cloud resources,
     you actually stop paying for them
6 am
10 am
25% Savings
  Web Servers




                1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
                                        Hour

during a day
www.MyWebSite.com
         (dynamic data)
                       Amazon Route 53
                                             media.MyWebSite.com
                       (DNS)
                                                  (static data)
  Elastic Load
  Balancer




                                                        Amazon
    Auto Scaling group : Web Tier                       CloudFront

  Amazon EC2




    Auto Scaling group : App Tier




             Amazon RDS                           Amazon S3
                                         Amazon
Availability Zone #1                     RDS



          Availability Zone #2
Auto scaling : Types of Scaling
 Scaling by Schedule
   Use Scheduled Actions in Auto Scaling Service
      • Date
      • Time
      • Min and Max of Auto Scaling Group Size
   You can create up to 125 actions, scheduled up to 31 days into the
    future, for each of your auto scaling groups. This gives you the ability
    to scale up to four times a day for a month.
 Scaling by Policy
   Scaling up Policy - Double the group size
   Scaling down Policy - Decrement by 1
Horizontal Scaling
       vs.
 Vertical Scaling
75% Savings
   Web Servers




                 1   3   5   7   9   11 13 15 17 19 21     23   25   27   29
                                       Days of the Month

during a month
End of the month processing
 Expand the cluster at the end of the month
   Expand/Shrink feature in Amazon Elastic MapReduce

 Vertically Scale up at the end of the month
   Modify-DB-Instance (in Amazon RDS) (or a New RDS DB Instance )
   CloudFormation Script (in Amazon EC2)
Reserved Instances
Reserved Instances
 New Reserved instances
  Light Utilization
  Medium Utilization
  Heavy Utilization
Light Utilization RI
 15-40% utilization
 Lower costs up to 33%
 Use Cases: Disaster Recovery, periodic
 processing (e.g. EMR)
Medium Utilization RI
 The old RI
 41-79% utilization
 Lower costs up to 49%
 Use Cases: Web applications, many heavy
 processing tasks
Heavy Utilization RI
 > 80% utilization
 Lower costs up to 59%
 Use Cases: Databases, Large Scale HPC,
 Always-on infrastructure, Baseline
Optimizing Cost with RIs
$18,000


$16,000


$14,000


$12,000


$10,000
                           Heavy
                           Medium
 $8,000
                           Light
                           O-Demand
 $6,000


 $4,000


 $2,000


    $-
Optimizing Cost with RIs
  14




  12




  10
                                                                             On Demand

   8
                                                                             Light Utilization RI

                                                                             Medium Utilization RI

   6                                                                         Heavy utilization RI



   4




   2




   0
       1   2   3   4   5   6   7   8   9   10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
http://d36cz9buwru1tt.cloudfront.net/AWS_Pricing_Overview.pdf
Instance Types
Basic recommendations on Instance Type

 Choose the EC2 instance type that best matches the resources
 required by the application
   Start with memory requirements and architecture type (32bit or 64-
    bit)
   Then choose the closest number of virtual cores required


 Scaling across AZs
   Smaller sizes give more granularity for deploying to multiple AZs
Tip – Instance Optimizer




             Free Memory
              Free CPU        PUT                       2 weeks
              Free HDD
               At 1-min
               intervals                                          Alarm
                                    Amazon CloudWatch

  Instance

             Custom Metrics
Spot Instances
           Bid on unused Amazon EC2 capacity.
Run instances as long as bid exceeds the current Spot Price
What are Spot Instances?


               Sold at                                               Sold at
                 50%
               Unused                                                  54%
                                                                     Unused
              Discount!                                             Discount!



                           Sold at               Sold at
                            56%
                          Unused                   59%
                                                 Unused
                          Discount!             Discount!



   Sold at                                                           Sold at
     66%
   Unused                                                              63%
                                                                    Unused
  Discount!                                                         Discount!


                            Availability Zone               Availability Zone




                                                                     Region
What is the tradeoff?



              Unused                                           Unused




                        Unused
                       Reclaimed             Unused




   Unused
  Reclaimed                                                    Unused



                         Availability Zone            Availability Zone




                                                               Region
Bidding Strategies
Strategy: Optimize for Cost
 Engineered application towards a cost
 Set low maximum bid price to minimize costs
 Were comfortable if process ran longer or jobs were re-run
 Did not pay for hour if they are interrupted
$$$$$$$$$$$$$$$$$$ $$$   $   $   $   $
Strategy: Price History Momentum

 Price Set 10% above Average Price Last Hour
 Maximum price threshold of 80% of On-Demand Price
 One time spot requests; one instance per request; across all
 availability zones
 Not more than 10 open Spot requests at any time
 Spot requests expire in 10 minute
Strategy: Price History Momentum
Strategy: Discount over On-Demand

 Bid around the On-Demand price
 Use On-Demand instance when Spot Price exceeds On-Demand
 price (or slightly higher)
 May pay more some hours, but on average they pay significantly
 less
 This bidding strategy ensures a discount over On-Demand
Strategy: Discount over On-Demand

                      Switch to   Substantial
                     On-DemandBack Savings
                        Switch
                          to Spot




                                    Much lower
                                    costs than
                                    On-Demand
Strategy: Minimize Interruption
                                        ~57%
                                       Savings




                                  On Average
                                  Substantial
                                   Savings
aws.amazon.com/ec2/spot-instances
Complementary
  services
$0.028
 per hour
                   DNS   Elastic Load
                                                      Web Servers
                           Balancer
                                                Availability Zone




$0.095
 per hour
(small instance)
                           EC2 instance
                   DNS     + software LB              Web Servers
                                        Availability Zone
Consumers
                          Producer     SQS queue

$0.01 per
10,000 Requests
($0.000001 per Request)




$0.095
     per hour
    (small instance)      Producer
                                       EC2 instance          Consumers
                                     + software queue
Software v/s Services

Software on EC2          SNS, SQS, SES
Pros                     Pros
• Custom features        • Pay as you go
                         • Scalability
Cons                     • Availability
• Requires an instance   • High performance
• SPOF
• Limited to one AZ
• DIY administration
1. Elastic Capacity

2. Reserved Instances

3. Spot   Instances

4. Instance   Types

5. Complementary services
aws.amazon.com/calculator
THANK YOU
aws.amazon.com
Cloud Economics: Optimising for Cost

More Related Content

What's hot

Building Web Applications on AWS - AWS Summit 2012 - NYC
Building Web Applications on AWS - AWS Summit 2012 - NYCBuilding Web Applications on AWS - AWS Summit 2012 - NYC
Building Web Applications on AWS - AWS Summit 2012 - NYC
Amazon Web Services
 

What's hot (20)

Scalable Database Options on AWS
Scalable Database Options on AWSScalable Database Options on AWS
Scalable Database Options on AWS
 
Accelerate your Business with SAP on AWS - AWS Summit Cape Town 2017
Accelerate your Business with SAP on AWS - AWS Summit Cape Town 2017 Accelerate your Business with SAP on AWS - AWS Summit Cape Town 2017
Accelerate your Business with SAP on AWS - AWS Summit Cape Town 2017
 
AWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big DataAWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big Data
 
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
 
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
 
Introduction to Storage on AWS - AWS Summit Cape Town 2017
Introduction to Storage on AWS - AWS Summit Cape Town 2017Introduction to Storage on AWS - AWS Summit Cape Town 2017
Introduction to Storage on AWS - AWS Summit Cape Town 2017
 
Deep Dive on Microservices and Docker - AWS Summit Cape Town 2017
Deep Dive on Microservices and Docker - AWS Summit Cape Town 2017Deep Dive on Microservices and Docker - AWS Summit Cape Town 2017
Deep Dive on Microservices and Docker - AWS Summit Cape Town 2017
 
Enterprise Journey to the Cloud
Enterprise Journey to the CloudEnterprise Journey to the Cloud
Enterprise Journey to the Cloud
 
Netflix Cloud Platform Building Blocks
Netflix Cloud Platform Building BlocksNetflix Cloud Platform Building Blocks
Netflix Cloud Platform Building Blocks
 
AWS re:Invent 2016: Zillow Group: Developing Classification and Recommendatio...
AWS re:Invent 2016: Zillow Group: Developing Classification and Recommendatio...AWS re:Invent 2016: Zillow Group: Developing Classification and Recommendatio...
AWS re:Invent 2016: Zillow Group: Developing Classification and Recommendatio...
 
Workload-Aware: Auto-Scaling A new paradigm for Big Data Workloads
Workload-Aware: Auto-Scaling A new paradigm for Big Data WorkloadsWorkload-Aware: Auto-Scaling A new paradigm for Big Data Workloads
Workload-Aware: Auto-Scaling A new paradigm for Big Data Workloads
 
Netflix in the cloud 2011
Netflix in the cloud 2011Netflix in the cloud 2011
Netflix in the cloud 2011
 
Building Web Applications on AWS - AWS Summit 2012 - NYC
Building Web Applications on AWS - AWS Summit 2012 - NYCBuilding Web Applications on AWS - AWS Summit 2012 - NYC
Building Web Applications on AWS - AWS Summit 2012 - NYC
 
AWS for HPC in Drug Discovery
AWS for HPC in Drug DiscoveryAWS for HPC in Drug Discovery
AWS for HPC in Drug Discovery
 
Netflix Velocity Conference 2011
Netflix Velocity Conference 2011Netflix Velocity Conference 2011
Netflix Velocity Conference 2011
 
Performance architecture for cloud connect
Performance architecture for cloud connectPerformance architecture for cloud connect
Performance architecture for cloud connect
 
Construindo Aplicacoes Web e Mobile Escalaveis na AWS
Construindo Aplicacoes Web e Mobile Escalaveis na AWSConstruindo Aplicacoes Web e Mobile Escalaveis na AWS
Construindo Aplicacoes Web e Mobile Escalaveis na AWS
 
Getting Started with Amazon DynamoDB
Getting Started with Amazon DynamoDBGetting Started with Amazon DynamoDB
Getting Started with Amazon DynamoDB
 
Optimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudOptimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS Cloud
 
AWS re:Invent 2016: How News UK Centralized Cloud Governance Through Policy M...
AWS re:Invent 2016: How News UK Centralized Cloud Governance Through Policy M...AWS re:Invent 2016: How News UK Centralized Cloud Governance Through Policy M...
AWS re:Invent 2016: How News UK Centralized Cloud Governance Through Policy M...
 

Viewers also liked

AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
Amazon Web Services
 
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
LicensingLive! - SafeNet
 
Cloud Computing – Time for delivery. The question is not “if”, but “how, whe...
Cloud Computing – Time for delivery.  The question is not “if”, but “how, whe...Cloud Computing – Time for delivery.  The question is not “if”, but “how, whe...
Cloud Computing – Time for delivery. The question is not “if”, but “how, whe...
Capgemini
 
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS CorpAWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
Amazon Web Services
 
Big data and intelligent platforms
Big data and intelligent platformsBig data and intelligent platforms
Big data and intelligent platforms
Krishnan Subramanian
 

Viewers also liked (20)

Cloud Computing for Enterprise Architects
Cloud Computing for Enterprise ArchitectsCloud Computing for Enterprise Architects
Cloud Computing for Enterprise Architects
 
Cloud Computing Technology Overview 2012
Cloud Computing Technology Overview 2012Cloud Computing Technology Overview 2012
Cloud Computing Technology Overview 2012
 
Cloud Computing Without The Hype An Executive Guide (1.00 Slideshare)
Cloud Computing Without The Hype   An Executive Guide (1.00 Slideshare)Cloud Computing Without The Hype   An Executive Guide (1.00 Slideshare)
Cloud Computing Without The Hype An Executive Guide (1.00 Slideshare)
 
ClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshopClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshop
 
Cloud Computing and Enterprise Architecture
Cloud Computing and Enterprise ArchitectureCloud Computing and Enterprise Architecture
Cloud Computing and Enterprise Architecture
 
Cloud is such stuff as dreams are made on
Cloud is such stuff as dreams are made onCloud is such stuff as dreams are made on
Cloud is such stuff as dreams are made on
 
AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
AWS for Media: Content in the Cloud, Miles Ward (Amazon Web Services) and Bha...
 
Cloud computing What Why How
Cloud computing What Why HowCloud computing What Why How
Cloud computing What Why How
 
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
Hybrid Customer Insight - Data Collection and Analysis from On-premise and in...
 
Hadoop Twelve Predictions for 2012
Hadoop Twelve Predictions for 2012Hadoop Twelve Predictions for 2012
Hadoop Twelve Predictions for 2012
 
AWS Architecting In The Cloud
AWS Architecting In The CloudAWS Architecting In The Cloud
AWS Architecting In The Cloud
 
Cloud Computing – Time for delivery. The question is not “if”, but “how, whe...
Cloud Computing – Time for delivery.  The question is not “if”, but “how, whe...Cloud Computing – Time for delivery.  The question is not “if”, but “how, whe...
Cloud Computing – Time for delivery. The question is not “if”, but “how, whe...
 
Masterclass Webinar: Amazon S3
Masterclass Webinar: Amazon S3Masterclass Webinar: Amazon S3
Masterclass Webinar: Amazon S3
 
Journey Through the AWS Cloud; Development and Test
Journey Through the AWS Cloud; Development and TestJourney Through the AWS Cloud; Development and Test
Journey Through the AWS Cloud; Development and Test
 
Cloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh VariaCloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
 
Building the European Cloud Computing Strategy
Building the European Cloud Computing StrategyBuilding the European Cloud Computing Strategy
Building the European Cloud Computing Strategy
 
Scaling the Cloud - Cloud Security
Scaling the Cloud - Cloud SecurityScaling the Cloud - Cloud Security
Scaling the Cloud - Cloud Security
 
Cloud Computing Integration Introduction
Cloud Computing Integration IntroductionCloud Computing Integration Introduction
Cloud Computing Integration Introduction
 
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS CorpAWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
AWS Cloud Use Cases - Ezhil Arasan Babaraj, CSS Corp
 
Big data and intelligent platforms
Big data and intelligent platformsBig data and intelligent platforms
Big data and intelligent platforms
 

Similar to Cloud Economics: Optimising for Cost

Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWSCost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
Amazon Web Services
 
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
 
14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria
infolive
 
AWS Summit 2011: Optimizing for Cost in the AWS Cloud
AWS Summit 2011: Optimizing for Cost in the AWS CloudAWS Summit 2011: Optimizing for Cost in the AWS Cloud
AWS Summit 2011: Optimizing for Cost in the AWS Cloud
Amazon Web Services
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS Cost Optimization
Miles Ward
 

Similar to Cloud Economics: Optimising for Cost (20)

Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWSCost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS
 
Optimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWSOptimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWS
 
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...
 
Optimizing for Costs in the Cloud
Optimizing for Costs in the CloudOptimizing for Costs in the Cloud
Optimizing for Costs in the Cloud
 
14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria
 
Increasing your predictability and decreasing your cost with AWS - Simone Br...
Increasing your predictability and decreasing your cost with AWS  - Simone Br...Increasing your predictability and decreasing your cost with AWS  - Simone Br...
Increasing your predictability and decreasing your cost with AWS - Simone Br...
 
The Lean Cloud for Startups with AWS - Cost Optimisation
The Lean Cloud for Startups with AWS - Cost OptimisationThe Lean Cloud for Startups with AWS - Cost Optimisation
The Lean Cloud for Startups with AWS - Cost Optimisation
 
Preparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgivingPreparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgiving
 
KGC 2013 AWS session
KGC 2013 AWS session KGC 2013 AWS session
KGC 2013 AWS session
 
Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for Thanksgiving
 
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
 
AWS Summit 2011: Optimizing for Cost in the AWS Cloud
AWS Summit 2011: Optimizing for Cost in the AWS CloudAWS Summit 2011: Optimizing for Cost in the AWS Cloud
AWS Summit 2011: Optimizing for Cost in the AWS Cloud
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS Cost Optimization
 
Optimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWSOptimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWS
 
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
 
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your BusinessAWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
 
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
 
B4 - The TCO of cloud applications
B4 - The TCO of cloud applicationsB4 - The TCO of cloud applications
B4 - The TCO of cloud applications
 
(ARC302) Running Lean Architectures: Optimizing for Cost Efficiency
(ARC302) Running Lean Architectures: Optimizing for Cost Efficiency(ARC302) Running Lean Architectures: Optimizing for Cost Efficiency
(ARC302) Running Lean Architectures: Optimizing for Cost Efficiency
 
Controle e otimização de custos na AWS
Controle e otimização de custos na AWSControle e otimização de custos na AWS
Controle e otimização de custos na AWS
 

More from 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
 

More from 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
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Cloud Economics: Optimising for Cost

  • 3. Elasticity is a fundamental property of the cloud that drives many of its economic benefits
  • 4. When you turn off your cloud resources, you actually stop paying for them
  • 7. 25% Savings Web Servers 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Hour during a day
  • 8. www.MyWebSite.com (dynamic data) Amazon Route 53 media.MyWebSite.com (DNS) (static data) Elastic Load Balancer Amazon Auto Scaling group : Web Tier CloudFront Amazon EC2 Auto Scaling group : App Tier Amazon RDS Amazon S3 Amazon Availability Zone #1 RDS Availability Zone #2
  • 9. Auto scaling : Types of Scaling Scaling by Schedule  Use Scheduled Actions in Auto Scaling Service • Date • Time • Min and Max of Auto Scaling Group Size  You can create up to 125 actions, scheduled up to 31 days into the future, for each of your auto scaling groups. This gives you the ability to scale up to four times a day for a month. Scaling by Policy  Scaling up Policy - Double the group size  Scaling down Policy - Decrement by 1
  • 10. Horizontal Scaling vs. Vertical Scaling
  • 11. 75% Savings Web Servers 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 Days of the Month during a month
  • 12. End of the month processing Expand the cluster at the end of the month  Expand/Shrink feature in Amazon Elastic MapReduce Vertically Scale up at the end of the month  Modify-DB-Instance (in Amazon RDS) (or a New RDS DB Instance )  CloudFormation Script (in Amazon EC2)
  • 14. Reserved Instances New Reserved instances  Light Utilization  Medium Utilization  Heavy Utilization
  • 15. Light Utilization RI 15-40% utilization Lower costs up to 33% Use Cases: Disaster Recovery, periodic processing (e.g. EMR)
  • 16. Medium Utilization RI The old RI 41-79% utilization Lower costs up to 49% Use Cases: Web applications, many heavy processing tasks
  • 17. Heavy Utilization RI > 80% utilization Lower costs up to 59% Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline
  • 18. Optimizing Cost with RIs $18,000 $16,000 $14,000 $12,000 $10,000 Heavy Medium $8,000 Light O-Demand $6,000 $4,000 $2,000 $-
  • 19. Optimizing Cost with RIs 14 12 10 On Demand 8 Light Utilization RI Medium Utilization RI 6 Heavy utilization RI 4 2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  • 22.
  • 23.
  • 24. Basic recommendations on Instance Type Choose the EC2 instance type that best matches the resources required by the application  Start with memory requirements and architecture type (32bit or 64- bit)  Then choose the closest number of virtual cores required Scaling across AZs  Smaller sizes give more granularity for deploying to multiple AZs
  • 25. Tip – Instance Optimizer Free Memory Free CPU PUT 2 weeks Free HDD At 1-min intervals Alarm Amazon CloudWatch Instance Custom Metrics
  • 26. Spot Instances Bid on unused Amazon EC2 capacity. Run instances as long as bid exceeds the current Spot Price
  • 27. What are Spot Instances? Sold at Sold at 50% Unused 54% Unused Discount! Discount! Sold at Sold at 56% Unused 59% Unused Discount! Discount! Sold at Sold at 66% Unused 63% Unused Discount! Discount! Availability Zone Availability Zone Region
  • 28. What is the tradeoff? Unused Unused Unused Reclaimed Unused Unused Reclaimed Unused Availability Zone Availability Zone Region
  • 29.
  • 30.
  • 32. Strategy: Optimize for Cost Engineered application towards a cost Set low maximum bid price to minimize costs Were comfortable if process ran longer or jobs were re-run Did not pay for hour if they are interrupted
  • 34. Strategy: Price History Momentum Price Set 10% above Average Price Last Hour Maximum price threshold of 80% of On-Demand Price One time spot requests; one instance per request; across all availability zones Not more than 10 open Spot requests at any time Spot requests expire in 10 minute
  • 36. Strategy: Discount over On-Demand Bid around the On-Demand price Use On-Demand instance when Spot Price exceeds On-Demand price (or slightly higher) May pay more some hours, but on average they pay significantly less This bidding strategy ensures a discount over On-Demand
  • 37.
  • 38. Strategy: Discount over On-Demand Switch to Substantial On-DemandBack Savings Switch to Spot Much lower costs than On-Demand
  • 39. Strategy: Minimize Interruption ~57% Savings On Average Substantial Savings
  • 40.
  • 43. $0.028 per hour DNS Elastic Load Web Servers Balancer Availability Zone $0.095 per hour (small instance) EC2 instance DNS + software LB Web Servers Availability Zone
  • 44. Consumers Producer SQS queue $0.01 per 10,000 Requests ($0.000001 per Request) $0.095 per hour (small instance) Producer EC2 instance Consumers + software queue
  • 45. Software v/s Services Software on EC2 SNS, SQS, SES Pros Pros • Custom features • Pay as you go • Scalability Cons • Availability • Requires an instance • High performance • SPOF • Limited to one AZ • DIY administration
  • 46. 1. Elastic Capacity 2. Reserved Instances 3. Spot Instances 4. Instance Types 5. Complementary services
  • 48.