SlideShare uma empresa Scribd logo
1 de 38
Optimizing for Cost in the Cloud

             Miles Ward
         miward@amazon.com
          Solutions Architect

             4/18/2012
        AWS Summit 2012 - NYC
Multiple dimensions of optimizations


                                  Cost
                                  Performance
                                  Response time
                                  Time to market
                                  High-availability
                                  Scalability
                                  Security
                                  Manageability
                                  …….
Optimizing for Cost…


  #1 Use only what you need (use Auto Scaling Service, modify–db)
Turn off what you don’t need (automatically)
Daily CPU Load
         14
         12
         10
         8
  Load




         6                           25% Savings
         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
                                      Hour



Optimize by the time of day
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
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
Web Servers           50% Savings




                1   5    9   13   17   21   25   29   33   37   41   45   49
                                            Week

Optimize during a year
RDS DB Servers                        75% Savings




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

Optimize during a month
Optimize by using “Reminder scripts”




Disassociate your unused EIPs
Delete unassociated EBS volumes
Delete older EBS snapshots
Leverage S3 Object expiration
Tip – Instance Optimizer

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

Instance

               Custom Metrics




               “You could save a bunch of money by switching
               to a smaller instance, Click on CloudFormation Script to
               Save”
Optimize by choosing the Right 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
Optimizing for Cost…


  #1 Use only what you need (use Auto Scaling Service, modify–db)

        #2 Invest time in Reserved Pricing analysis (EC2, RDS)
Your Best Option: Reserved + On-Demand
Save more when you reserve

   On-demand           Reserved
    Instances          Instances                          Heavy
                                                      Utilization RI
• Pay as you go    • One time low
                     upfront fee +    1-year and 3-     Medium
                     Pay as you go     year terms     Utilization RI
• Starts from      • $23 for 1 year
                     term and                              Light
  $0.02/Hour                                          Utilization RI
                     $0.01/Hour
$14,000
                     m2.xlarge running Linux in US-East Region
          $12,000
                     over 3 Year period
                                                                                   Break-even
          $10,000                                                                  point
           $8,000
   Cost



                                                                              Heavy Utilization
           $6,000                                                             Medium Utilization
           $4,000
                                                                              Light Utilization
                                                                              On-Demand
           $2,000


              $-




                                           Utilization


Utilization        Sweet Spot                Feature                       Savings over On-Demand
<10%               On-Demand                 No Upfront Commitment
10% - 40%          Light Utilization RI      Ideal for Disaster Recovery   Up to 56% (3-Year)
40% - 75%          Medium Utilization RI     Standard Reserved Capacity    Up to 66% (3-Year)
>75%               Heavy Utilization RI      Lowest Total Cost             Up to 71% (3-Year)
                                             Ideal for Baseline Servers
Recommendations

Steady State Usage Pattern
• For 100% utilization
    • If you plan on running for at least 6 months, invest in RI for 1-year term
    • If you plan on running for at least 8.7 months, invest in RI for 3-year term
Spiky Predictable Usage Pattern
• Baseline
    • 3-Year Heavy RI (for maximum savings over on-demand)
    • 1-Year Light RI (for lowest upfront commitment) + savings over on-demand
• Peak: On-Demand
Uncertain and unpredictable Usage Pattern
• Baseline: 3-Year Heavy RIs
• Median: 1-Year or 3-Year Light RIs
• Peak: On-Demand
Example: Simple 3-Tier Web Application


 Description Option 1 Option 2                  Option 3             Option 4
    2 Web servers 2 On-Demand    2 On-Demand 1 On-Demand and     1 On-Demand and
                                             1 Reserved Medium   1 Reserved Light
                                             Utilization         Utilization
    2 App servers 2 On-Demand    2 On-Demand 1 On-Demand and     1 On-Demand and
                                             1 Reserved Medium   1 Reserved Light
                                             Utilization         Utilization
2 Database servers 2 On-Demand   2 Reserved  2 Reserved Medium   2 Reserved Heavy
                                 Medium      Utilization         Utilization
                                 Utilization
Example: Simple 3-Tier Web Application

Savings                               Option 1         Option 2     Option 3     Option 4
                                      Calculator       Calculator   Calculator   Calculator
Monthly Cost                             $702.72          $374.78     $256.20      $238.63
One-Time Cost     1 Year Term                      -     $1280.00    $1600.00     $1698.00
                  3 Year Term                      -     $2000.00    $2500.00    $2612..60
Total Cost        1 Year Term (x12)     $8432.64         $5777.36    $4674.40     $4561.56
                  3 Year Term (x36)    $25297.92        $15492.08   $11723.20 $11203.28


Savings           1 Year Term                 n/a             32%         44%          45%
(Over Option 1)
                  3 Year Term                 n/a             39%         54%          54%
Optimizing for Cost…


  #1 Use only what you need (use Auto Scaling Service, modify–db)

        #2 Invest time in Reserved Pricing analysis (EC2, RDS)

    #3 Architect for Spot Instances (bidding strategies)
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.02/Hour               term and                 as of today at
                           $0.01/Hour               9 AM


                   1-year and 3-
                    year terms


            Heavy              Medium         Light Utilization
        Utilization RI       Utilization RI          RI
Spot Use cases
Use Case               Types of Applications
Batch Processing       Generic background processing (scale out computing)

Hadoop                 Hadoop/MapReduce processing type jobs (e.g. Search,
                       Big Data, etc.)

Scientific Computing   Scientific trials/simulations/analysis in chemistry,
                       physics, and biology
Video and Image        Transform videos into specific formats
Processing/Rendering
Testing                Provide testing of software, web sites, etc

Web/Data Crawling      Analyzing data and processing it
Financial              Hedgefund analytics, energy trading, etc
HPC                    Utilize HPC servers to do embarrassingly parallel jobs

Cheap Compute          Backend servers for Facebook games
Save more money by using Spot Instances




Reserved Hourly Price > Spot Price < On-Demand Price
Typical Spot Bidding Strategies


                                  1. Bid near the
                                     Reserved
                                     Hourly Price

                                  2. Bid above the
                                     Spot Price
                                     History

                                  3. Bid near On-
                                     Demand Price

                                  4. Bid above the
                                     On-Demand
                                     Price
Managing Interruption
Architecting for Spot Instances : Best Practices

Manage interruption
• Split up your work into small increments
• Checkpointing: Save your work frequently and periodically
Test Your Application
Track when Spot Instances Start and Stop
Spot Requests
• Use Persistent Requests for continuous tasks
• Choose maximum price for your requests
Optimizing Video Transcoding Workloads


   Free Offering                          Premium Offering
    • Optimize for reducing cost             Optimized for Faster response times
    • Acceptable Delay Limits                No Delays

Implementation                          Implementation
    • Set Persistent Requests               Invest in RIs
    • Use on-demand Instances, if           Use on-demand for Elasticity
      delay

       Maximum Bid Price                   Maximum Bid Price
       < On-demand Rate                    >= On-demand Rate
       Get your set reduced price for      Get Instant Capacity for higher price
       your workload
Made for each other: MapReduce + Spot

                           Use Case: Web crawling/Search
                           using Hadoop type clusters. Use
                           Reserved Instances for their DB
                           workloads and Spot instances for
                           their indexing clusters. Launch
                           100’s of instances.
                           Bidding Strategy: Bid a little
                           above the On-Demand price to
                           prevent interruption.
                           Interruption Strategy: Restart
                           the cluster if interrupted




                                     66% Savings over
                                     On-Demand
Optimizing for Cost…


  #1 Use only what you need (use Auto Scaling Service, modify–db)

        #2 Invest time in Reserved Pricing analysis (EC2, RDS)

    #3 Architect for Spot Instances (bidding strategies)

    #4 Leverage Application Services (SNS, SQS, SWF, SES)
Optimize by converting ancillary instances into
                                       services



                       Monitoring: CloudWatch
                       Notifications: SNS
                       Queuing: SQS
                       SendMail: SES
                       Load Balancing: ELB
                       Workflow: SWF
                       Search: CloudSearch
Elastic Load Balancing


Software LB on EC2                   Elastic Load Balancing
Pros                                 Pros
   Application-tier load                Elastic and Fault-tolerant
   balancer
                                        Auto scaling
                                        Monitoring included

Cons
  SPOF                               Cons
  Elasticity has to be                 For Internet-facing traffic
  implemented manually                 only
  Not as cost-effective
$0.025
 per hour
                   DNS   Elastic Load
                                                      Web Servers
                           Balancer
                                                Availability Zone




$0.08
 per hour
(small instance)
                           EC2 instance
                   DNS     + software LB              Web Servers
                                        Availability Zone
Application Services


Software on EC2                  SNS, SQS, SES, SWF
Pros                             Pros
   Custom features                  Pay as you go
                                    Scalability
Cons                                Availability
  Requires an instance              High performance
  SPOF
  Limited to one AZ
  DIY administration
Consumers
                          Producer     SQS queue

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




  $0.08
     per hour
    (small instance)      Producer
                                       EC2 instance          Consumers
                                     + software queue
Optimizing for Cost…


  #1 Use only what you need (use Auto Scaling Service, modify–db)

        #2 Invest time in Reserved Pricing analysis (EC2, RDS)

    #3 Architect for Spot Instances (bidding strategies)

    #4 Leverage Application Services (SNS, SQS, SWF, SES)

    #5 Implement Caching (ElastiCache, CloudFront)
caching




             Optimize for performance and cost
by page caching and edge-caching static content
Number of ways to further save with AWS…


  #1 Use only what you need (use Auto Scaling Service, modify–db)

        #2 Invest time in Reserved Pricing analysis (EC2, RDS)

    #3 Architect for Spot Instances (bidding strategies)

    #4 Leverage Application Services (SNS, SQS, SWF, SES)

    #5 Implement Caching (ElastiCache, CloudFront)
Thank you!




miward@amazon.com
 Twitter: @milesward

Mais conteúdo relacionado

Mais procurados

Managing Amazon AWS Costs
Managing Amazon AWS CostsManaging Amazon AWS Costs
Managing Amazon AWS CostsJoe Kinsella
 
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일Amazon Web Services Korea
 
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
 
Optimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit DublinOptimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit DublinAmazon Web Services
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS Cost OptimizationMiles Ward
 
AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership  AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership Amazon Web Services
 
Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Szabolcs Zajdó
 
AWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost OptimizationAWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost OptimizationAmazon Web Services
 
AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018James Bromberger
 
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 BusinessAmazon Web Services
 
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...Amazon Web Services
 
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...Amazon Web Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Amazon Web Services
 
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)Amazon Web Services
 
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 CloudAmazon Web Services
 
Ralph Rebske: AWS Pricing and Billing
Ralph Rebske: AWS Pricing and BillingRalph Rebske: AWS Pricing and Billing
Ralph Rebske: AWS Pricing and BillingSymposia Media
 
Cloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to ScaleCloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to ScaleAmazon Web Services
 
2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization1Strategy
 
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...Amazon Web Services
 

Mais procurados (20)

Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Managing Amazon AWS Costs
Managing Amazon AWS CostsManaging Amazon AWS Costs
Managing Amazon AWS Costs
 
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
 
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
 
Optimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit DublinOptimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit Dublin
 
AWS Cost Optimization
AWS Cost OptimizationAWS Cost Optimization
AWS Cost Optimization
 
AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership  AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership
 
Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)
 
AWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost OptimizationAWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost Optimization
 
AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018
 
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...
 
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
 
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
 
Ralph Rebske: AWS Pricing and Billing
Ralph Rebske: AWS Pricing and BillingRalph Rebske: AWS Pricing and Billing
Ralph Rebske: AWS Pricing and Billing
 
Cloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to ScaleCloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to Scale
 
2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization
 
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
 

Destaque

AWS Cost Management Lessons from the Private Sector
AWS Cost Management Lessons from the Private SectorAWS Cost Management Lessons from the Private Sector
AWS Cost Management Lessons from the Private SectorAmazon Web Services
 
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...Amazon Web Services
 
Константин Маркович: "Creating modular application using Spring Boot "
Константин Маркович: "Creating modular application using Spring Boot "Константин Маркович: "Creating modular application using Spring Boot "
Константин Маркович: "Creating modular application using Spring Boot "Anna Shymchenko
 
AWS Cost Control
AWS Cost ControlAWS Cost Control
AWS Cost ControlBob Brown
 
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 usageCloudability
 
AWS Cost optimization at scale
AWS Cost optimization at scaleAWS Cost optimization at scale
AWS Cost optimization at scaleBrett Pollak
 
Data Warehousing in the Era of Big Data: Intro to Amazon Redshift
Data Warehousing in the Era of Big Data: Intro to Amazon RedshiftData Warehousing in the Era of Big Data: Intro to Amazon Redshift
Data Warehousing in the Era of Big Data: Intro to Amazon RedshiftAmazon Web Services
 
Introducing “Well-Architected” For Developers - Technical 101
Introducing “Well-Architected” For Developers - Technical 101Introducing “Well-Architected” For Developers - Technical 101
Introducing “Well-Architected” For Developers - Technical 101Amazon Web Services
 
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...Amazon Web Services
 
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/16Cloudability
 
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 succeedCloudability
 
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014Amazon Web Services
 
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)Amazon Web Services
 
Creating a Culture of Cost Management in Your Organization
Creating a Culture of Cost Management in Your OrganizationCreating a Culture of Cost Management in Your Organization
Creating a Culture of Cost Management in Your OrganizationAmazon Web Services
 
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...Amazon Web Services
 
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)Amazon Web Services
 
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...Amazon Web Services
 

Destaque (20)

AWS Cost Management Lessons from the Private Sector
AWS Cost Management Lessons from the Private SectorAWS Cost Management Lessons from the Private Sector
AWS Cost Management Lessons from the Private Sector
 
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...
AWS Partner Webcast - Advanced Strategies for AWS Cost Allocation with Tags a...
 
Cost optimization on AWS
Cost optimization on AWSCost optimization on AWS
Cost optimization on AWS
 
Otimizacao de custo summit 2015
Otimizacao de custo summit 2015Otimizacao de custo summit 2015
Otimizacao de custo summit 2015
 
Константин Маркович: "Creating modular application using Spring Boot "
Константин Маркович: "Creating modular application using Spring Boot "Константин Маркович: "Creating modular application using Spring Boot "
Константин Маркович: "Creating modular application using Spring Boot "
 
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
 
AWS Cost optimization at scale
AWS Cost optimization at scaleAWS Cost optimization at scale
AWS Cost optimization at scale
 
Data Warehousing in the Era of Big Data: Intro to Amazon Redshift
Data Warehousing in the Era of Big Data: Intro to Amazon RedshiftData Warehousing in the Era of Big Data: Intro to Amazon Redshift
Data Warehousing in the Era of Big Data: Intro to Amazon Redshift
 
Introducing “Well-Architected” For Developers - Technical 101
Introducing “Well-Architected” For Developers - Technical 101Introducing “Well-Architected” For Developers - Technical 101
Introducing “Well-Architected” For Developers - Technical 101
 
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
 
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
 
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
 
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
 
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
 
Creating a Culture of Cost Management in Your Organization
Creating a Culture of Cost Management in Your OrganizationCreating a Culture of Cost Management in Your Organization
Creating a Culture of Cost Management in Your Organization
 
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...
AWS re:Invent 2016: Big Data Architectural Patterns and Best Practices on AWS...
 
Docker: uma visão geral
Docker: uma visão geralDocker: uma visão geral
Docker: uma visão geral
 
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)
AWS re:Invent 2016: Hackproof Your Cloud: Responding to 2016 Threats (SAC308)
 
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...
AWS re:Invent 2016: Start Your Cost Optimization Program: Learning from Intui...
 

Semelhante a Optimizing Your Infrastructure Costs on AWS

14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvariainfolive
 
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
 
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
 
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
 
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 OptimisationAmazon Web Services
 
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, AWSAmazon 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
 
Cloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloudyn
 
B4 - The TCO of cloud applications
B4 - The TCO of cloud applicationsB4 - The TCO of cloud applications
B4 - The TCO of cloud applicationsAmazon Web Services
 
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAmazon Web Services
 
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
 
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - DemoServerless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - DemoAmazon Web Services
 
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applicationsAWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applicationsAmazon Web Services
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesAmazon Web Services
 
The Science of Saving with AWS Reserved Instances
The Science of Saving with AWS Reserved InstancesThe Science of Saving with AWS Reserved Instances
The Science of Saving with AWS Reserved InstancesCloudability
 

Semelhante a Optimizing Your Infrastructure Costs on AWS (20)

14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria14h00 aws costoptimization_jvaria
14h00 aws costoptimization_jvaria
 
Optimizing for Costs in the Cloud
Optimizing for Costs in the CloudOptimizing for Costs in the Cloud
Optimizing for Costs in the Cloud
 
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...
 
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
 
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
 
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
 
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
 
KGC 2013 AWS session
KGC 2013 AWS session KGC 2013 AWS session
KGC 2013 AWS session
 
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
 
Optimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWSOptimize Cost Efficiency on AWS
Optimize Cost Efficiency on AWS
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
Cloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROICloud Economics – Finding Your ROI
Cloud Economics – Finding Your ROI
 
B4 - The TCO of cloud applications
B4 - The TCO of cloud applicationsB4 - The TCO of cloud applications
B4 - The TCO of cloud applications
 
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
 
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...
 
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - DemoServerless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
 
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applicationsAWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
The Science of Saving with AWS Reserved Instances
The Science of Saving with AWS Reserved InstancesThe Science of Saving with AWS Reserved Instances
The Science of Saving with AWS Reserved Instances
 

Mais de 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
 

Mais 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

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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.pptxKatpro Technologies
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
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 AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
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.pptxHampshireHUG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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 MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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 MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 

Último (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 

Optimizing Your Infrastructure Costs on AWS

  • 1. Optimizing for Cost in the Cloud Miles Ward miward@amazon.com Solutions Architect 4/18/2012 AWS Summit 2012 - NYC
  • 2. Multiple dimensions of optimizations Cost Performance Response time Time to market High-availability Scalability Security Manageability …….
  • 3. Optimizing for Cost… #1 Use only what you need (use Auto Scaling Service, modify–db)
  • 4. Turn off what you don’t need (automatically)
  • 5. Daily CPU Load 14 12 10 8 Load 6 25% Savings 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 Hour Optimize by the time of day
  • 6. 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
  • 7. 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
  • 8. Web Servers 50% Savings 1 5 9 13 17 21 25 29 33 37 41 45 49 Week Optimize during a year
  • 9. RDS DB Servers 75% Savings 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 Days of the Month Optimize during a month
  • 10. Optimize by using “Reminder scripts” Disassociate your unused EIPs Delete unassociated EBS volumes Delete older EBS snapshots Leverage S3 Object expiration
  • 11. Tip – Instance Optimizer Free Memory Free CPU PUT 2 weeks Free HDD At 1-min intervals Alarm Amazon CloudWatch Instance Custom Metrics “You could save a bunch of money by switching to a smaller instance, Click on CloudFormation Script to Save”
  • 12. Optimize by choosing the Right 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
  • 13. Optimizing for Cost… #1 Use only what you need (use Auto Scaling Service, modify–db) #2 Invest time in Reserved Pricing analysis (EC2, RDS)
  • 14. Your Best Option: Reserved + On-Demand
  • 15. Save more when you reserve On-demand Reserved Instances Instances Heavy Utilization RI • Pay as you go • One time low upfront fee + 1-year and 3- Medium Pay as you go year terms Utilization RI • Starts from • $23 for 1 year term and Light $0.02/Hour Utilization RI $0.01/Hour
  • 16. $14,000 m2.xlarge running Linux in US-East Region $12,000 over 3 Year period Break-even $10,000 point $8,000 Cost Heavy Utilization $6,000 Medium Utilization $4,000 Light Utilization On-Demand $2,000 $- Utilization Utilization Sweet Spot Feature Savings over On-Demand <10% On-Demand No Upfront Commitment 10% - 40% Light Utilization RI Ideal for Disaster Recovery Up to 56% (3-Year) 40% - 75% Medium Utilization RI Standard Reserved Capacity Up to 66% (3-Year) >75% Heavy Utilization RI Lowest Total Cost Up to 71% (3-Year) Ideal for Baseline Servers
  • 17. Recommendations Steady State Usage Pattern • For 100% utilization • If you plan on running for at least 6 months, invest in RI for 1-year term • If you plan on running for at least 8.7 months, invest in RI for 3-year term Spiky Predictable Usage Pattern • Baseline • 3-Year Heavy RI (for maximum savings over on-demand) • 1-Year Light RI (for lowest upfront commitment) + savings over on-demand • Peak: On-Demand Uncertain and unpredictable Usage Pattern • Baseline: 3-Year Heavy RIs • Median: 1-Year or 3-Year Light RIs • Peak: On-Demand
  • 18. Example: Simple 3-Tier Web Application Description Option 1 Option 2 Option 3 Option 4 2 Web servers 2 On-Demand 2 On-Demand 1 On-Demand and 1 On-Demand and 1 Reserved Medium 1 Reserved Light Utilization Utilization 2 App servers 2 On-Demand 2 On-Demand 1 On-Demand and 1 On-Demand and 1 Reserved Medium 1 Reserved Light Utilization Utilization 2 Database servers 2 On-Demand 2 Reserved 2 Reserved Medium 2 Reserved Heavy Medium Utilization Utilization Utilization
  • 19. Example: Simple 3-Tier Web Application Savings Option 1 Option 2 Option 3 Option 4 Calculator Calculator Calculator Calculator Monthly Cost $702.72 $374.78 $256.20 $238.63 One-Time Cost 1 Year Term - $1280.00 $1600.00 $1698.00 3 Year Term - $2000.00 $2500.00 $2612..60 Total Cost 1 Year Term (x12) $8432.64 $5777.36 $4674.40 $4561.56 3 Year Term (x36) $25297.92 $15492.08 $11723.20 $11203.28 Savings 1 Year Term n/a 32% 44% 45% (Over Option 1) 3 Year Term n/a 39% 54% 54%
  • 20. Optimizing for Cost… #1 Use only what you need (use Auto Scaling Service, modify–db) #2 Invest time in Reserved Pricing analysis (EC2, RDS) #3 Architect for Spot Instances (bidding strategies)
  • 21. 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.02/Hour term and as of today at $0.01/Hour 9 AM 1-year and 3- year terms Heavy Medium Light Utilization Utilization RI Utilization RI RI
  • 22. Spot Use cases Use Case Types of Applications Batch Processing Generic background processing (scale out computing) Hadoop Hadoop/MapReduce processing type jobs (e.g. Search, Big Data, etc.) Scientific Computing Scientific trials/simulations/analysis in chemistry, physics, and biology Video and Image Transform videos into specific formats Processing/Rendering Testing Provide testing of software, web sites, etc Web/Data Crawling Analyzing data and processing it Financial Hedgefund analytics, energy trading, etc HPC Utilize HPC servers to do embarrassingly parallel jobs Cheap Compute Backend servers for Facebook games
  • 23. Save more money by using Spot Instances Reserved Hourly Price > Spot Price < On-Demand Price
  • 24. Typical Spot Bidding Strategies 1. Bid near the Reserved Hourly Price 2. Bid above the Spot Price History 3. Bid near On- Demand Price 4. Bid above the On-Demand Price
  • 26. Architecting for Spot Instances : Best Practices Manage interruption • Split up your work into small increments • Checkpointing: Save your work frequently and periodically Test Your Application Track when Spot Instances Start and Stop Spot Requests • Use Persistent Requests for continuous tasks • Choose maximum price for your requests
  • 27. Optimizing Video Transcoding Workloads Free Offering Premium Offering • Optimize for reducing cost  Optimized for Faster response times • Acceptable Delay Limits  No Delays Implementation Implementation • Set Persistent Requests  Invest in RIs • Use on-demand Instances, if  Use on-demand for Elasticity delay Maximum Bid Price Maximum Bid Price < On-demand Rate >= On-demand Rate Get your set reduced price for Get Instant Capacity for higher price your workload
  • 28. Made for each other: MapReduce + Spot Use Case: Web crawling/Search using Hadoop type clusters. Use Reserved Instances for their DB workloads and Spot instances for their indexing clusters. Launch 100’s of instances. Bidding Strategy: Bid a little above the On-Demand price to prevent interruption. Interruption Strategy: Restart the cluster if interrupted 66% Savings over On-Demand
  • 29. Optimizing for Cost… #1 Use only what you need (use Auto Scaling Service, modify–db) #2 Invest time in Reserved Pricing analysis (EC2, RDS) #3 Architect for Spot Instances (bidding strategies) #4 Leverage Application Services (SNS, SQS, SWF, SES)
  • 30. Optimize by converting ancillary instances into services Monitoring: CloudWatch Notifications: SNS Queuing: SQS SendMail: SES Load Balancing: ELB Workflow: SWF Search: CloudSearch
  • 31. Elastic Load Balancing Software LB on EC2 Elastic Load Balancing Pros Pros Application-tier load Elastic and Fault-tolerant balancer Auto scaling Monitoring included Cons SPOF Cons Elasticity has to be For Internet-facing traffic implemented manually only Not as cost-effective
  • 32. $0.025 per hour DNS Elastic Load Web Servers Balancer Availability Zone $0.08 per hour (small instance) EC2 instance DNS + software LB Web Servers Availability Zone
  • 33. Application Services Software on EC2 SNS, SQS, SES, SWF Pros Pros Custom features Pay as you go Scalability Cons Availability Requires an instance High performance SPOF Limited to one AZ DIY administration
  • 34. Consumers Producer SQS queue $0.01 per 10,000 Requests ($0.000001 per Request) $0.08 per hour (small instance) Producer EC2 instance Consumers + software queue
  • 35. Optimizing for Cost… #1 Use only what you need (use Auto Scaling Service, modify–db) #2 Invest time in Reserved Pricing analysis (EC2, RDS) #3 Architect for Spot Instances (bidding strategies) #4 Leverage Application Services (SNS, SQS, SWF, SES) #5 Implement Caching (ElastiCache, CloudFront)
  • 36. caching Optimize for performance and cost by page caching and edge-caching static content
  • 37. Number of ways to further save with AWS… #1 Use only what you need (use Auto Scaling Service, modify–db) #2 Invest time in Reserved Pricing analysis (EC2, RDS) #3 Architect for Spot Instances (bidding strategies) #4 Leverage Application Services (SNS, SQS, SWF, SES) #5 Implement Caching (ElastiCache, CloudFront)

Notas do Editor

  1. Our strategy of pricing each service independently gives you tremendous flexibility to choose the services you need for each project and to pay only for what you use
  2. Perhaps you expect a lot of traffic as part of a planned announcement and you want to increase the size of your EC2 fleet just ahead of your press release. Maybe your site is busy once a day because you have a daily deal or a daily special, or only on weekends when people are at sporting events. Or maybe you run a college registration site and you want to scale up during day and evening hours for the four-day registration period.
  3. Shrink your server fleet from 6 to 2 at night and bring back
  4. For example, if the application always scales 2 large instancesin each AZ, there is pretty much no difference between this approach and 1 extra large in each AZ.  However, it would be safer for the customer to scale to 1 large instancein 2 AZs rather than 1 extra large in 1 AZ (and cheaper than 2 extra larges).
  5. 1 or 3 years is *our* commitment to the customer *not* theirs to us. 
  6. 1Engineered application towards a costSet low maximum bid price to minimize costsWere comfortable if process ran longer or jobs were re-runDid not pay for hour if they are interrupted2Price Set 10% above Average Price Last HourMaximum price threshold of 80% of On-Demand PriceOne time spot requests; one instance per request; across all availability zonesNot more than 10 open Spot requests at any timeSpot requests expire in 10 minuteLaunch Spot instances first and then on-demand instances if you don’t get the spot instances in under 15 minutes3Bid around the On-Demand priceUse On-Demand instance when Spot Price exceeds On-Demand price (or slightly higher)May pay more some hours, but on average they pay significantly lessThis bidding strategy ensures a discount over On-Demand4Bid around the On-Demand priceUse On-Demand instance when Spot Price exceeds On-Demand price (or slightly higher)May pay more some hours, but on average they pay significantly lessThis bidding strategy ensures a discount over On-Demand
  7. Save Your Work Frequently: Because Spot Instances can be terminated with no warning, it is importantto build your applications in a way that allows you to make progress even if your application isinterrupted. There are many ways to accomplish this, two of which are adding checkpoints to yourapplication or splitting your work into small increments.Add Checkpoints: Depending on fluctuations in the Spot Price caused by changes in the supply ordemand for Spot capacity, Spot Instance requests may not be fulfilled immediately and may beterminated without warning. In order to protect your work from potential interruptions, werecommend inserting regular checkpoints to save your work periodically. One way to do this is by savingall of your data to an Amazon EBS volume. Another approach is to run your instances using Amazon EBS-backed AMIs. By setting theDeleteOnTermination flag to false as part of your launch request, the Amazon EBS volume used as theinstance’s root partition will persist after instance termination, and you can recover all of the data savedto that volume. You can read more details on the use of Amazon EBS-backed AMIs here.Note: When using this technique with a persistent request, bear in mind that a new EBS volumewill be created for each new Spot Instance.Split up Your Work: Another best practice is to split your workload into small increments if possible.Using Amazon SQS, you can queue up work increments and keep track of what work has already beendone (as in the example from the previous section). When using this approach, ensure that processing aunit of work is idempotent (can be safely processed multiple times) to ensure that resuming aninterrupted task doesn’t cause problems. You can do this by enqueuing a message to your Amazon SQS queue for each increment of work. Youcan then build an AMI that, when run, discovers the queue from which to pull its work. Discovery can bedone by building it into the AMI, passing in user data or by storing the configuration remotely (forexample in Amazon SimpleDB or Amazon S3), which will tell the AMI in which queue to look.More details on using Amazon SQS with Amazon EC2 and a detailed walkthrough on how to set up thistype of architecture can be found here.Test Your Application: When using Spot Instances, it is important to make sure that your application isfault tolerant and will correctly handle interruptions. While we attempt to cleanly terminate yourinstances, your application should be prepared to deal with sudden shutdowns. You can test yourapplication by running an On-Demand Instance and then terminating it. This can help you to determinewhether your application is sufficiently fault tolerant and is able to handle unexpected interruptions.18Minimize Group Instance Launches: There are two options for launching instances together in a cluster.The Launch Group is a request option that ensures your instances will be launched and terminatedsimultaneously. The Availability Zone Group is a second request option that ensures your instances willbe launched together in one Availability Zone. Although they may be necessary for some applications,avoiding these restrictions whenever possible will increase the chances of your request being fulfilled.When Launch Groups are required, try to minimize the group size because larger groups have a lowerchance of being fulfilled. Additionally whenever possible, try to avoid specifying a specific AvailabilityZone in order to increase your chances of successfully launching.Use Persistent Requests for Continuous Tasks: Spot Instance Requests can be one-time or persistent. Aone-time request will only be satisfied once; a persistent request will remain in consideration after eachinstance termination. This means that after your request has been satisfied and your instance has beenterminated—by you or by Amazon EC2—your request will be submitted again automatically with thesame parameters as your initial request. A persistent request will continue submitting the request untilyou cancel it. These requests can be helpful if you have continuous work that can be stopped andresumed, such as data processing or video rendering. We recommend that you revisit these requestsfrom time to time to examine whether or not you want to change your maximum price or the AMI.Changing parameters will require that you cancel your existing request and resubmit a new request.Note: Terminating your instance is not the same as cancelling a persistent request. If youterminate your instance without cancelling your persistent request, Amazon EC2 willautomatically launch a replacement Spot Instance given that your maximum price is above thecurrent Spot Price.Track when Spot Instances Start and Stop: The simplest way to know the current status of your SpotInstances is to either poll the DescribeSpotInstanceRequests API or view the status of your instance usingthe AWS Management Console. By polling the DescribeSpotInstanceRequests at whatever frequency youdesire (e.g. every ten minutes), you can look for state changes to your requests. This will tell you when arequest is successful, because it will change from “open” to “active” and it will have an associatedinstance ID. You can use this same approach to detect terminations by checking to see if the “instanceid” field disappears.You can also use Amazon SQS to create your own notifications. One way of doing this is to create an AMIthat has a start-up script that enqueues a message on an Amazon SQS queue. You can take the sameapproach to detect when a Spot Instance begins the process of shutting down.For instructions on how to build your own AMI, please see the Amazon EC2 User Guide located here.Access Large Pools of Compute Capacity: Spot Instances can be used to help you meet occasional needsfor large amounts of compute capacity (note that the default limit for Spot Instances is 100 versus thedefault limit of 20 for On-Demand Instances.) If your needs are urgent, you can specify a high maximumprice (possibly even higher than the On-Demand price), which will raise your request’s relative priorityand allow you to gain access to as much immediate capacity as possible given other requests and the19Spot Instance capacity available at the time. While Spot Instances are generally not suitable for steadystatetasks such as serving web content, they can be used as a valuable source of instance capacity evenfor steady state applications when applications have urgent computing needs due to unanticipated orshort-term demand spikes.