SlideShare a Scribd company logo
1 of 51
Download to read offline
COST OPTIMIZATION

Ianni Vamvadelis
Solutions Architect
Multiple dimensions of optimization


                                 Cost
                                 Performance
                                 Response time
                                 Time to market
                                 High-availability
                                 Scalability
                                 Security
                                 Manageability
                                 …….
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 content,
  Elastic Load                                 streaming media)
  Balancer




                                                        Amazon
                                                        CloudFront
    Auto Scaling group : Web Tier


  Amazon EC2




    Auto Scaling group : App Tier




             Amazon RDS                           Amazon S3
                                         Amazon
Availability Zone #1                     RDS



          Availability Zone #2
Auto scaling options
 Scaling base on Policy
   Scale up and down base on metrics
   Scaling Up policy - Double the group size if avg cpu > 80%
   Scaling Down policy - Decrement by 10% if avg cpu < 30%


 Scaling by Schedule
   Scheduled Actions to meet known demand
   Scheduled up to 31 days into the future
   Recurring scheduled scaling activities.
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
Instance Types
On Demand
Choosing an Instance Type
 Start with the EC2 instance type that best matches
   memory requirements
   virtual cores


 Tune your instance type to optimise for cost
   No need to get it right first time


 Run across AZs
   Smaller sizes give more granularity for deploying across AZs
Knowing your usage




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

 Instance

            Custom Metrics
Horizontal Scaling
       and
 Vertical Scaling
Reserved Instances
Optimize by using Reserved Instances


   On-demand                    Reserved                     Spot
    Instances                   Instances                 Instances
• Pay as you go           • One time low           • Requested Bid
                            upfront fee +            Price and Pay as
                            lower hourly cost        you go
• Starts from             • $23 for 1 year         • $0.005/Hour as
  $0.025/Hour               term and                 of today at 9 AM
                            $0.015/Hour



                    1-year and 3-
                     year terms


             Heavy              Medium               Light
         Utilization RI       Utilization RI    Utilization RI
Light Utilization RI
 15-40% utilization
 Lower costs up to 34%
 Use Cases: Disaster Recovery, Weekly /
 Monthly reporting, Elastic Map Reduce
Medium Utilization RI
 41-79% utilization
 Lower costs up to 49%
 Use Cases: Web applications, many heavy
 processing tasks, running much of the time
Heavy Utilization RI
 > 80% utilization
 Lower costs up to 58%
 Use Cases: Databases, Large Scale HPC,
 Always-on infrastructure, Baseline
Best RI for Utilisation
$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

                                                                         Light Utilization RI
   8
                                                                         Medium Utilization RI

                                                                         Heavy utilization RI
   6




   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://aws.amazon.com/whitepapers
Spot Instances
Bid on unused Amazon EC2 capacity.
Optimize by using Spot Instances

  On-demand          Reserved              Spot
   Instances         Instances          Instances
• Pay as you go   • One time low     • Requested Bid
                    upfront fee +      Price and Pay
                    Pay as you go      as you go
• Starts from     • $23 for 1 year   • $0.005/Hour
  $0.025/Hour       term and           as of today at
                    $0.015/Hour        9 AM
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
Architecting for Spot Instances

Decouple Components
   Separate interactive and backend processing
Design for interruption
   Use SQS, SWF
   data in a durable store
   save progress regularly
Use Cases for Spot



 Financial Modelling
                          Analytics       Testing      Scientific Computing
    and Analysis




Geospatial Analysis    Media Encoding   Web Crawling        Big Data
EMR with Spot Instances

 Scenario #1   Scenario #2    #1: Cost without Spot
                 Job Flow     4 instances *14 hrs * $0.50 = $28
   Job Flow
                              #2: Cost with Spot
                              4 instances *7 hrs * $0.50 = $14 +
                              5 instances * 7 hrs * $0.25 = $8.75
                              Total = $22.75

   Duration:      Duration:
   14 Hours                   Time Savings: 50%
                  7 Hours     Cost Savings: ~22%
Bidding Strategies
Strategy: Optimize for Cost
 Engineered application towards a cost
 Set low maximum bid price to minimize costs
 Comfortable if process takes longer or jobs were re-run
 When interrupted, no charge for that hour.
$$$$$$$$$$$$$$$$$$ $$$   $   $   $   $
Strategy: Price History Momentum

 Monitor spot market price
 Bid 10% above Average Spot Price of the Last Hour
 Maximum bid of 80% of On-Demand Price
 Expect fewer interruptions than Optimize for Cost
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
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. Instance   Types

3. Reserved Instances

4. Spot   Instances

5. Complementary services
Next Steps:



  aws.amazon.com/economics
  aws.amazon.com/calculator
THANK YOU

More Related Content

Viewers also liked

Daftar nilai harian siswa
Daftar nilai harian siswaDaftar nilai harian siswa
Daftar nilai harian siswaDida Setiawan
 
Методы оценивания
Методы оцениванияМетоды оценивания
Методы оцениванияKurbatskiy Alexey
 
La Dolescencia
La DolescenciaLa Dolescencia
La Dolescenciaroberto96
 
Clothes%20 crossword
Clothes%20 crosswordClothes%20 crossword
Clothes%20 crosswordtserensodnom
 
Kurikulum pendidikan tinggi sesuai kkni 2014
Kurikulum pendidikan tinggi sesuai kkni 2014Kurikulum pendidikan tinggi sesuai kkni 2014
Kurikulum pendidikan tinggi sesuai kkni 2014Laila Nur Rokhmah
 
Delayed Adjectives and Adverbs
Delayed Adjectives and AdverbsDelayed Adjectives and Adverbs
Delayed Adjectives and AdverbsSam Georgi
 
Opening Adjectives and Adverbs
Opening Adjectives and AdverbsOpening Adjectives and Adverbs
Opening Adjectives and AdverbsSam Georgi
 
Pai kelas-9.-bab-9.-hadis-tentang-kebersihan
Pai kelas-9.-bab-9.-hadis-tentang-kebersihanPai kelas-9.-bab-9.-hadis-tentang-kebersihan
Pai kelas-9.-bab-9.-hadis-tentang-kebersihansifatulfalah3120
 
Proyecto de vida de tatiana gabriela
Proyecto de vida de tatiana gabrielaProyecto de vida de tatiana gabriela
Proyecto de vida de tatiana gabrielatatiana1905
 

Viewers also liked (10)

Daftar nilai harian siswa
Daftar nilai harian siswaDaftar nilai harian siswa
Daftar nilai harian siswa
 
Методы оценивания
Методы оцениванияМетоды оценивания
Методы оценивания
 
La Dolescencia
La DolescenciaLa Dolescencia
La Dolescencia
 
Lecture 10 cont_joint_distr
Lecture 10 cont_joint_distrLecture 10 cont_joint_distr
Lecture 10 cont_joint_distr
 
Clothes%20 crossword
Clothes%20 crosswordClothes%20 crossword
Clothes%20 crossword
 
Kurikulum pendidikan tinggi sesuai kkni 2014
Kurikulum pendidikan tinggi sesuai kkni 2014Kurikulum pendidikan tinggi sesuai kkni 2014
Kurikulum pendidikan tinggi sesuai kkni 2014
 
Delayed Adjectives and Adverbs
Delayed Adjectives and AdverbsDelayed Adjectives and Adverbs
Delayed Adjectives and Adverbs
 
Opening Adjectives and Adverbs
Opening Adjectives and AdverbsOpening Adjectives and Adverbs
Opening Adjectives and Adverbs
 
Pai kelas-9.-bab-9.-hadis-tentang-kebersihan
Pai kelas-9.-bab-9.-hadis-tentang-kebersihanPai kelas-9.-bab-9.-hadis-tentang-kebersihan
Pai kelas-9.-bab-9.-hadis-tentang-kebersihan
 
Proyecto de vida de tatiana gabriela
Proyecto de vida de tatiana gabrielaProyecto de vida de tatiana gabriela
Proyecto de vida de tatiana gabriela
 

Similar to Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS

Cloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostCloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostAmazon Web Services
 
Cost Optimisation with Amazon Web Services
 Cost Optimisation with Amazon Web Services Cost Optimisation with Amazon Web Services
Cost Optimisation with Amazon Web ServicesAmazon Web Services
 
Optimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWSOptimizing Your Infrastructure Costs on AWS
Optimizing Your Infrastructure Costs on AWSAmazon Web Services
 
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...Amazon Web Services
 
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...Amazon Web Services
 
14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvariainfolive
 
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 OptimizationCloudyn
 
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Amazon Web Services
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS Cost OptimizationMiles Ward
 
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 CloudAmazon Web Services
 
Preparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgivingPreparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgiving8KMiles Software Services
 
Cloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloudyn
 
How to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud DayHow to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud DayCloudyn
 
AWS for Start-ups - Cost Optimisation with AWS
AWS for Start-ups - Cost Optimisation with AWSAWS for Start-ups - Cost Optimisation with AWS
AWS for Start-ups - Cost Optimisation with AWSAmazon Web Services
 
How to Find and Fix Waste to Optimize Your Cloud Spend
How to Find and Fix Waste to Optimize Your Cloud SpendHow to Find and Fix Waste to Optimize Your Cloud Spend
How to Find and Fix Waste to Optimize Your Cloud SpendRightScale
 
(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 EfficiencyAmazon Web Services
 
12 Ways to Manage Cloud Costs and Optimize Cloud Spend
12 Ways to Manage Cloud Costs and Optimize Cloud Spend12 Ways to Manage Cloud Costs and Optimize Cloud Spend
12 Ways to Manage Cloud Costs and Optimize Cloud SpendRightScale
 
Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingHarish Ganesan
 

Similar to Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS (20)

Cloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostCloud Economics: Optimising for Cost
Cloud Economics: Optimising for Cost
 
Cost Optimisation with Amazon Web Services
 Cost Optimisation with Amazon Web Services Cost Optimisation with Amazon Web Services
Cost Optimisation with 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
 
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...
 
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...
 
14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria
 
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
 
Optimizing for Costs in the Cloud
Optimizing for Costs in the CloudOptimizing for Costs in the Cloud
Optimizing for Costs in the Cloud
 
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
 
KGC 2013 AWS session
KGC 2013 AWS session KGC 2013 AWS session
KGC 2013 AWS session
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS 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
 
Preparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgivingPreparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgiving
 
Cloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROI
 
How to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud DayHow to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud Day
 
AWS for Start-ups - Cost Optimisation with AWS
AWS for Start-ups - Cost Optimisation with AWSAWS for Start-ups - Cost Optimisation with AWS
AWS for Start-ups - Cost Optimisation with AWS
 
How to Find and Fix Waste to Optimize Your Cloud Spend
How to Find and Fix Waste to Optimize Your Cloud SpendHow to Find and Fix Waste to Optimize Your Cloud Spend
How to Find and Fix Waste to Optimize Your Cloud Spend
 
(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
 
12 Ways to Manage Cloud Costs and Optimize Cloud Spend
12 Ways to Manage Cloud Costs and Optimize Cloud Spend12 Ways to Manage Cloud Costs and Optimize Cloud Spend
12 Ways to Manage Cloud Costs and Optimize Cloud Spend
 
Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for Thanksgiving
 

More from Amazon Web Services

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...Amazon Web Services
 
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...Amazon Web Services
 
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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
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 Amazon Web Services
 
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...Amazon Web Services
 
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...Amazon Web Services
 
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 WorkloadsAmazon Web Services
 
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 sfatareAmazon Web Services
 
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 NodeJSAmazon Web Services
 
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 webAmazon Web Services
 
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 sfatareAmazon 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 AWSAmazon 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 DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon 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
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon 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

Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFChandresh Chudasama
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesKeppelCorporation
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCRashishs7044
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 

Recently uploaded (20)

Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDF
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCREnjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation Slides
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 

Cost Optimisation in the AWS Cloud, Ianni Vamvadelis, Solutions Architect, AWS

  • 2. Multiple dimensions of optimization Cost Performance Response time Time to market High-availability Scalability Security Manageability …….
  • 4. Elasticity is a fundamental property of the cloud that drives many of its economic benefits
  • 5. When you turn off your cloud resources, you actually stop paying for them
  • 8. 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
  • 9. www.MyWebSite.com (dynamic data) Amazon Route 53 media.MyWebSite.com (DNS) (static content, Elastic Load streaming media) Balancer Amazon CloudFront Auto Scaling group : Web Tier Amazon EC2 Auto Scaling group : App Tier Amazon RDS Amazon S3 Amazon Availability Zone #1 RDS Availability Zone #2
  • 10. Auto scaling options Scaling base on Policy  Scale up and down base on metrics  Scaling Up policy - Double the group size if avg cpu > 80%  Scaling Down policy - Decrement by 10% if avg cpu < 30% Scaling by Schedule  Scheduled Actions to meet known demand  Scheduled up to 31 days into the future  Recurring scheduled scaling activities.
  • 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
  • 13.
  • 15. Choosing an Instance Type Start with the EC2 instance type that best matches  memory requirements  virtual cores Tune your instance type to optimise for cost  No need to get it right first time Run across AZs  Smaller sizes give more granularity for deploying across AZs
  • 16. Knowing your usage Free Memory Free CPU PUT 2 weeks Free HDD At 1-min intervals Alarm Amazon CloudWatch Instance Custom Metrics
  • 17. Horizontal Scaling and Vertical Scaling
  • 19. Optimize by using Reserved Instances On-demand Reserved Spot Instances Instances Instances • Pay as you go • One time low • Requested Bid upfront fee + Price and Pay as lower hourly cost you go • Starts from • $23 for 1 year • $0.005/Hour as $0.025/Hour term and of today at 9 AM $0.015/Hour 1-year and 3- year terms Heavy Medium Light Utilization RI Utilization RI Utilization RI
  • 20. Light Utilization RI 15-40% utilization Lower costs up to 34% Use Cases: Disaster Recovery, Weekly / Monthly reporting, Elastic Map Reduce
  • 21. Medium Utilization RI 41-79% utilization Lower costs up to 49% Use Cases: Web applications, many heavy processing tasks, running much of the time
  • 22. Heavy Utilization RI > 80% utilization Lower costs up to 58% Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline
  • 23. Best RI for Utilisation $18,000 $16,000 $14,000 $12,000 $10,000 Heavy Medium $8,000 Light O-Demand $6,000 $4,000 $2,000 $-
  • 24. Optimizing Cost with RIs 14 12 10 On Demand Light Utilization RI 8 Medium Utilization RI Heavy utilization RI 6 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
  • 26. Spot Instances Bid on unused Amazon EC2 capacity.
  • 27. Optimize by using Spot Instances On-demand Reserved Spot Instances Instances Instances • Pay as you go • One time low • Requested Bid upfront fee + Price and Pay Pay as you go as you go • Starts from • $23 for 1 year • $0.005/Hour $0.025/Hour term and as of today at $0.015/Hour 9 AM
  • 28. 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
  • 29. What is the tradeoff? Unused Unused Unused Reclaimed Unused Unused Reclaimed Unused Availability Zone Availability Zone Region
  • 30.
  • 31.
  • 32. Architecting for Spot Instances Decouple Components  Separate interactive and backend processing Design for interruption  Use SQS, SWF  data in a durable store  save progress regularly
  • 33. Use Cases for Spot Financial Modelling Analytics Testing Scientific Computing and Analysis Geospatial Analysis Media Encoding Web Crawling Big Data
  • 34. EMR with Spot Instances Scenario #1 Scenario #2 #1: Cost without Spot Job Flow 4 instances *14 hrs * $0.50 = $28 Job Flow #2: Cost with Spot 4 instances *7 hrs * $0.50 = $14 + 5 instances * 7 hrs * $0.25 = $8.75 Total = $22.75 Duration: Duration: 14 Hours Time Savings: 50% 7 Hours Cost Savings: ~22%
  • 36. Strategy: Optimize for Cost Engineered application towards a cost Set low maximum bid price to minimize costs Comfortable if process takes longer or jobs were re-run When interrupted, no charge for that hour.
  • 38. Strategy: Price History Momentum Monitor spot market price Bid 10% above Average Spot Price of the Last Hour Maximum bid of 80% of On-Demand Price Expect fewer interruptions than Optimize for Cost
  • 40. 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
  • 41. Strategy: Discount over On-Demand Switch to Substantial On-DemandBack Savings Switch to Spot Much lower costs than On-Demand
  • 42. Strategy: Minimize Interruption ~57% Savings On Average Substantial Savings
  • 43.
  • 45. $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
  • 46. 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
  • 47. 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
  • 48. 1. Elastic Capacity 2. Instance Types 3. Reserved Instances 4. Spot Instances 5. Complementary services
  • 49. Next Steps: aws.amazon.com/economics aws.amazon.com/calculator
  • 50.