SlideShare ist ein Scribd-Unternehmen logo
1 von 112
Downloaden Sie, um offline zu lesen
Journey through the Cloud:
        Cost optimization
    Ryan Shuttleworth – Technical Evangelist
                 @ryanAWS
Journey through the cloud

Common use cases & stepping stones into the AWS cloud
                     Learning from customer journeys
              Best practices to bootstrap your projects
Cost Optimization

               A key step in the cloud journey
             Realize cost aware architectures
Use elasticity to real and measurable benefit
                             Do more, use less
Agenda
Fundamentals of AWS cost optimization
Cost optimization in 5 steps
Where to go next
Fundamentals of cost optimization
Why optimize?
Why optimize?

       Utility
Compute and Storage
are a utility so ‘turning
off’ should be natural
Why optimize?

       Utility                 Efficiency
Compute and Storage           Efficiency allows
are a utility so ‘turning     more to be done
off’ should be natural      within a given budget
Why optimize?

       Utility                 Efficiency             Architecture
Compute and Storage           Efficiency allows      Cost awareness drives
are a utility so ‘turning     more to be done       adoption of 21st century
off’ should be natural      within a given budget        architectures
Turn off the lights
When you stop EC2 resources you stop
          paying for them
Be elastic
 Support workloads with the right
amount of horsepower to get the job
              done
Continually optimize
Drive recurring and improving savings
  through cost aware architectures
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
Server Load




         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 of day
Server Load




                                                        Capacity of 1 Server




         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 of day
Traditional capacity required
Server Load




                                                          Capacity of 1 Server




         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 of day
Traditional capacity required
Server Load




                                                          Capacity of 1 Server



              1 Server for 8 hours




         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 of day
Traditional capacity required
Server Load




                                                                     Capacity of 1 Server



              1 Server for 8 hours   1 Server for 8 hours




         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 of day
Traditional capacity required



                                     1 Server for 8 hours
Server Load




                                                                     Capacity of 1 Server



              1 Server for 8 hours   1 Server for 8 hours




         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 of day
Traditional capacity required



                                     1 Server for 8 hours
Server Load




                                                                     Capacity of 1 Server



              1 Server for 8 hours   1 Server for 8 hours         1 Server for 8 hours




         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 of day
Traditional capacity required
Server Load




                                                          Capacity of 1 Server

                                    1/3rd
                                   Saving
         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 of day
Elastic Capacity




2 am
Elastic Capacity




8 am
Elastic Capacity




12 am
Elastic Capacity




4 pm
Elastic Capacity




10 pm
Time: +00h




     <10 cores




Elastic Capacity
Time: +24h
      >1500 cores




Elastic Capacity
Time: +72h




          <10 cores




Elastic Capacity
Time: +120h




                   >600 cores




Elastic Capacity
Auto-scaling policies


                 Manually                       By Schedule
         Send an API call or use CLI to   Scale up/down based on date
         launch/terminate instances –               and time
         Only need to specify capacity
                 change (+/-)


                 By Policy                    Auto-Rebalance
         Scale in response to changing     Instances are automatically
           conditions, based on user         launched/terminated to
              configured real-time           ensure the application is
             monitoring and alerts        balanced across multiple Azs
Auto-scaling policies



   Scaling base on Policy                    Scaling by Schedule
Scale up and down base on metrics        Scheduled Actions to meet known
                                                     demand
Scaling Up policy - Double the group
        size if avg cpu > 80%          Scheduled up to 31 days into the future
Scaling Down policy - Decrement by      Recurring scheduled scaling activities
        10% if avg cpu < 30%
6

                 5
Instance Count



                 4

                 3

                 2

                 1

                 0
                     0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930
                                               Day of Month
6

                 5
                                               Monthly
Instance Count



                 4
                                              predictable
                 3                               peak
                                              processing
                 2

                 1

                 0
                     0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930
                                               Day of Month
Traditional capacity required
                 6

                 5
Instance Count



                 4

                 3

                 2

                 1

                 0
                     0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930
                                               Day of Month
Traditional capacity required
                 6

                 5
Instance Count



                 4

                 3

                 2

                 1
                                            Elastic Capacity
                 0
                     0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930
                                               Day of Month
Traditional capacity required
                 6

                 5
Instance Count



                 4
                                      75 % Savings
                 3

                 2

                 1
                                            Elastic Capacity
                 0
                     0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930
                                               Day of Month
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
Instance types
Instance types




        Start
 Choose instance that
   meets your basic
  requirements best
Match memory & virtual
        cores
Instance types




        Start                    Tune
 Choose instance that    Change instance size up
   meets your basic       or down based upon
  requirements best            monitoring
Match memory & virtual   Use trusted advisor to
        cores                    assess
Instance types




        Start                    Tune                   Spread
 Choose instance that    Change instance size up   Run instances across
   meets your basic       or down based upon       multiple availability
  requirements best            monitoring                 zones
Match memory & virtual   Use trusted advisor to    Smaller sizes equals
        cores                    assess             greater granularity
Know your usage




                    Free Memory
                      Free CPU
                      Free HDD
                                       PUT                2 weeks
                          …
                   Custom Metrics
                          …
                                               Amazon
  Instance        At 1-min intervals                                Alarm
                                             CloudWatch
Choose your metric
 optimize for the metric
Choose your metric
          optimize for the metric
                Cost per unit of work per instance(size)

 Workload A                   Workload B                    Workload C

Optimal on 4x               Optimal on 10x                 Optimal on 2x
 m1.xlarge                   m1.medium                      m3.xxlarge
Choose your metric
        optimize for the metric
             Cost per unit of work per instance(size)


100 concurrent jobs on 10 x m1.large @ $0.26 / hr = $ 0.026 / job
                               vs
300 concurrent jobs on 10 x m3.xlarge @ $0.58 / hr = $ 0.019 / job
Choose your metric
        optimize for the metric

         Think workload density
Don’t focus on instance hourly rate per se
Master Account
aws.invoices@mycompany.com
Master Account
    aws.invoices@mycompany.com




consolidated billing information

            Division B
         admin@divisionB.com
            IAM    User2
                   Dev2
                   Admin2
Master Account
    aws.invoices@mycompany.com




consolidated billing information            Tags: (key-
                                              value)
                Division B                  e.g Own=Div
                                               Proj=R
          admin@divisionB.com
                IAM           User2
                              Dev2
                              Admin2

      Tags:           Tags:       Tags:
      Own=Div         Own=Div     Own=Div
      Proj=P          Proj=Q      Proj=R
Master Account
                                      aws.invoices@mycompany.com




                                  consolidated billing information

  Operating Co. A                                 Division B                     Business Unit C
    admin@opcoa.com                         admin@divisionB.com                   admin@busUnitC.com
                      User1                                     User2                               User3
        IAM




                                                  IAM




                                                                                      IAM
                      Dev1                                      Dev2                                Dev3
                      Admin1                                    Admin2                              Admin3

Tags:         Tags:       Tags:         Tags:           Tags:       Tags:     Tags:         Tags:       Tags:
Own=OpCo Own=OpCo         Own=OpCo      Own=Div         Own=Div     Own=Div   Own=BusC      Own=BusC    Own=BusC
Proj=A   Proj=B           Proj=C        Proj=P          Proj=Q      Proj=R    Proj=X        Proj=Y      Proj=Z
Master Account
                                      aws.invoices@mycompany.com




                                  consolidated billing information

  Operating Co. A                                 Division B                     Business Unit C
    admin@opcoa.com                         admin@divisionB.com                   admin@busUnitC.com
                      User1                                     User2                               User3
        IAM




                                                  IAM




                                                                                      IAM
                      Dev1                                      Dev2                                Dev3
                      Admin1                                    Admin2                              Admin3

Tags:         Tags:       Tags:         Tags:           Tags:       Tags:     Tags:         Tags:       Tags:
Own=OpCo Own=OpCo         Own=OpCo      Own=Div         Own=Div     Own=Div   Own=BusC      Own=BusC    Own=BusC
Proj=A   Proj=B           Proj=C        Proj=P          Proj=Q      Proj=R    Proj=X        Proj=Y      Proj=Z
Programmatic billing access
                                          Master Account
                                      aws.invoices@mycompany.com

                                                                                                                     S3   CSV

                                  consolidated billing information

  Operating Co. A                                 Division B                     Business Unit C
    admin@opcoa.com                         admin@divisionB.com                   admin@busUnitC.com
                      User1                                     User2                                 User3
        IAM




                                                  IAM




                                                                                        IAM
                      Dev1                                      Dev2                                  Dev3
                      Admin1                                    Admin2                                Admin3

Tags:         Tags:       Tags:         Tags:           Tags:       Tags:     Tags:           Tags:       Tags:
Own=OpCo Own=OpCo         Own=OpCo      Own=Div         Own=Div     Own=Div   Own=BusC        Own=BusC    Own=BusC
Proj=A   Proj=B           Proj=C        Proj=P          Proj=Q      Proj=R    Proj=X          Proj=Y      Proj=Z
Programmatic billing access
                                          Master Account
                                      aws.invoices@mycompany.com

                                                                                                                     S3   CSV

                                  consolidated billing information

  Operating Co. A                                 Division B                     Business Unit C
    admin@opcoa.com                         admin@divisionB.com                   admin@busUnitC.com
                      User1                                     User2                                 User3
        IAM




                                                  IAM




                                                                                        IAM
                      Dev1                                      Dev2                                  Dev3
                      Admin1                                    Admin2                                Admin3

Tags:         Tags:       Tags:         Tags:           Tags:       Tags:     Tags:           Tags:       Tags:
Own=OpCo Own=OpCo         Own=OpCo      Own=Div         Own=Div     Own=Div   Own=BusC        Own=BusC    Own=BusC
Proj=A   Proj=B           Proj=C        Proj=P          Proj=Q      Proj=R    Proj=X          Proj=Y      Proj=Z
Basic        Offering
             24x7x365                    ✓
Developer    Forum Access                ✓
             Documentation               ✓
Business     Access to support       Phone, Chat,
                                        Email
Enterprise   Named Contacts               5
             Fastest Response Time     1 Hour

             Architecture Support     Use Case
                                      Guidance

             Best Practice               ✓
             Diagnostics Tools           ✓
             Direct Routing              ✓
             3rd Party Software          ✓
             Trusted Advisor             ✓
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
Reserved instances


    On-demand instances

   Unix/Linux instances start at
           $0.02/hour

   Pay as you go for compute power

        Low cost and flexibility

 Pay only for what you use, no up-front
  commitments or long-term contracts

               Use Cases:

 Applications with short term, spiky, or
       unpredictable workloads;

  Application development or testing
Reserved instances


    On-demand instances                             Reserved instances

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Reserved instances                                                                                 Heavy utilization RI

                                                                                                        > 80% utilization
                                                                                                      Lower costs up to 58%
    On-demand instances                             Reserved instances                        Use Cases: Databases, Large Scale HPC,
                                                                                                Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Reserved instances                                                                                   Heavy utilization RI

                                                                                                          > 80% utilization
                                                                                                       Lower costs up to 58%
    On-demand instances                             Reserved instances                         Use Cases: Databases, Large Scale HPC,
                                                                                                 Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly         Medium utilization RI
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability                          41-79% utilization
                                                                                                       Lower costs up to 49%
 Pay only for what you use, no up-front     Helps ensure compute capacity is available        Use Cases: Web applications, many heavy
  commitments or long-term contracts                      when needed                         processing tasks, running much of the time

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Reserved instances                                                                                   Heavy utilization RI

                                                                                                          > 80% utilization
                                                                                                       Lower costs up to 58%
    On-demand instances                             Reserved instances                         Use Cases: Databases, Large Scale HPC,
                                                                                                 Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly         Medium utilization RI
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability                          41-79% utilization
                                                                                                       Lower costs up to 49%
 Pay only for what you use, no up-front     Helps ensure compute capacity is available        Use Cases: Web applications, many heavy
  commitments or long-term contracts                      when needed                         processing tasks, running much of the time

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or                                                              Light utilization RI
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing                                                                     15-40% utilization
                                            Applications that require reserved capacity,               Lower costs up to 34%
                                                    including disaster recovery
                                                                                               Use Cases: Disaster Recovery, Weekly /
                                                                                               Monthly reporting, Elastic Map Reduce
Best RI for Utilisation
 $18,000


 $16,000


 $14,000


 $12,000


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


  $4,000


  $2,000


     $-
Best RI for Utilisation
 $18,000


 $16,000


 $14,000


 $12,000


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


  $4,000


  $2,000


     $-
Optimizing costs with RIs
 14



 12



 10


                                                                                                                     On Demand
  8
                                                                                                                     Light Utilization RI

  6                                                                                                                  Medium Utilization RI
                                                                                                                     Heavy utilization RI
  4



  2



  0
      1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
Spot instances


    On-demand instances                             Reserved instances

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Spot instances


    On-demand instances                             Reserved instances                                    Spot instances

   Unix/Linux instances start at                       1- or 3-year terms                           Bid on unused EC2 capacity
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly       Spot Price based on supply/demand,
   Pay as you go for compute power                            discount                                 determined automatically

        Low cost and flexibility                      Low Cost / Predictability               Cost / Large Scale, dynamic workload handling

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed
                                                                                                               Use Cases:
               Use Cases:
                                                             Use Cases:                       Applications with flexible start and end times
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable     Applications only feasible at very low compute
                                                                usage                                              prices
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Achieving economies of scale
 100%




                               Time
Achieving economies of scale
 100%




                    Reserved capacity

                                        Time
Achieving economies of scale
 100%

                          On

                      On-demand



                    Reserved capacity

                                        Time
Achieving economies of scale
 100%
                        Spot
                           On

                      On-demand



                    Reserved capacity

                                        Time
If your bid > spot price
    You get an instance
If your bid < spot price
 Your instance is terminated
Architecting for spot instances



  Decouple components                 Design for interruption
 Separate interactive & backend                Use SQS, SWF
           processing
                                  Place data in a durable store such as S3,
 Use frameworks such as Elastic           SimpleDB or DynamoDB
         MapReduce
                                          Save progress regularly
EMR with spot instances

          Scenario #1

              Job Flow




          Duration:
              14 Hours


      #1: Cost without Spot
4 instances *14 hrs * $0.50 = $28
EMR with spot instances

          Scenario #1               Scenario #2

              Job Flow                  Job Flow




          Duration:                 Duration:
              14 Hours               7 Hours


      #1: Cost without Spot
4 instances *14 hrs * $0.50 = $28
EMR with spot instances

          Scenario #1                         Scenario #2

              Job Flow                            Job Flow




          Duration:                           Duration:
              14 Hours                         7 Hours


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

          Scenario #1                                  Scenario #2

              Job Flow                                     Job Flow



                              Time Savings: 50%
          Duration:           Cost Savings: ~22%       Duration:
              14 Hours                                  7 Hours


      #1: Cost without Spot                          #2: Cost with Spot
4 instances *14 hrs * $0.50 = $28            4 instances *7 hrs * $0.50 = $14 +
                                             5 instances * 7 hrs * $0.25 = $8.75
                                                       Total = $22.75
Spot market
Bidding strategies
Spot bidding strategies


                                       Bid Distribution (for 3 months period)
                                 20%
Percentage of the Distribution




                                 18%
                                 16%
                                 14%
                                 12%
                                 10%
                                 8%
                                 6%
                                 4%
                                 2%
                                 0%




                                       Bid Price as Percentage of the On-Demand Price
Spot bidding strategies


                                                     Bid Distribution (for 3 months period)
                                 20%
Percentage of the Distribution




                                 18%
                                 16%
                                 14%
                                 12%
                                       Bid near the RI
                                 10%
                                 8%
                                        hourly price
                                 6%
                                 4%
                                 2%
                                 0%




                                                         Bid Price as Percentage of the On-Demand Price
Spot bidding strategies


                                            Bid Distribution (for 3 months period)
                                 20%
Percentage of the Distribution




                                 18%
                                 16%
                                 14%
                                 12%
                                       Bid above the spot price
                                 10%
                                 8%
                                               history
                                 6%
                                 4%
                                 2%
                                 0%




                                             Bid Price as Percentage of the On-Demand Price
Spot bidding strategies


                                       Bid Distribution (for 3 months period)
                                 20%
Percentage of the Distribution




                                 18%
                                 16%
                                 14%
                                 12%              Bid near the
                                 10%              on-demand
                                 8%                   price
                                 6%
                                 4%
                                 2%
                                 0%




                                       Bid Price as Percentage of the On-Demand Price
Spot bidding strategies


                                       Bid Distribution (for 3 months period)
                                 20%
Percentage of the Distribution




                                 18%
                                 16%
                                 14%
                                 12%
                                 10%                             Bid above the on-demand price
                                 8%
                                 6%
                                 4%
                                 2%
                                 0%




                                       Bid Price as Percentage of the On-Demand Price
Bid near the reserved hourly price
       You only pay for a full hour
Bid near the reserved hourly price
          You only pay for a full hour
   (if you are interrupted the hour is free)
Bid above the on-demand price
     Expect fewer interruptions
Bid above the on-demand price
     Expect fewer interruptions
      (only pay the spot price)
Implement cost aware architecture
Flip from spot to on-demand as price dictates
Spot customers
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
$0.028
 per hour   DNS   Elastic Load     Web Servers
                    Balancer
                                 Availability Zone
$0.028
 per hour           DNS   Elastic Load              Web Servers
                            Balancer
                                                  Availability Zone




                   VS

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

$0.01 per
10,000 Requests
($0.000001 per Request)
Consumers
                          Producer        SQS queue

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



                                     VS

$0.085
     per hour             Producer
    (small instance)                    EC2 instance          Consumers
                                      + software queue
Software vs services



     Software on EC2                 AWS Services
            Pros:           ELB, SNS, SQS, SES, SWF, DynamoDB etc
     Use custom features
                                            Pros:
                                        Pay as you go
            Cons:
                                         Scalability
     Requires an instance
                                         Availability
            SPOF
                                      High performance
      Limited to one AZ
      DIY administration
Summary
5 Steps for cost
                 optimization
Elastic capacity
Instance types
Reserved instances
Spot instances
Complementary services
Where to go next
Useful links




aws.amazon.com/economics
aws.amazon.com/calculator
Useful links




               http://aws.amazon.com/whitepapers
aws.amazon.com

Weitere ähnliche Inhalte

Was ist angesagt?

Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
DataWorks Summit
 

Was ist angesagt? (20)

AWS Re:Invent - Optimizing Costs with AWS
AWS Re:Invent -  Optimizing Costs with AWSAWS Re:Invent -  Optimizing Costs with AWS
AWS Re:Invent - Optimizing Costs with AWS
 
More Nines for Your Dimes: Improving Availability and Lowering Costs using Au...
More Nines for Your Dimes: Improving Availability and Lowering Costs using Au...More Nines for Your Dimes: Improving Availability and Lowering Costs using Au...
More Nines for Your Dimes: Improving Availability and Lowering Costs using Au...
 
9 Ways to Reduce Cloud Storage Costs
9 Ways to Reduce Cloud Storage Costs9 Ways to Reduce Cloud Storage Costs
9 Ways to Reduce Cloud Storage Costs
 
A Year with Cinder and Ceph at TWC
A Year with Cinder and Ceph at TWCA Year with Cinder and Ceph at TWC
A Year with Cinder and Ceph at TWC
 
Rendering Takes Flight
Rendering Takes FlightRendering Takes Flight
Rendering Takes Flight
 
Dip into prometheus
Dip into prometheusDip into prometheus
Dip into prometheus
 
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
 
Hadoop & Spark Performance tuning using Dr. Elephant
Hadoop & Spark Performance tuning using Dr. ElephantHadoop & Spark Performance tuning using Dr. Elephant
Hadoop & Spark Performance tuning using Dr. Elephant
 
Rail Performance in the Cloud - Opening
Rail Performance in the Cloud - OpeningRail Performance in the Cloud - Opening
Rail Performance in the Cloud - Opening
 
(ARC348) Seagull: How Yelp Built A System For Task Execution
(ARC348) Seagull: How Yelp Built A System For Task Execution(ARC348) Seagull: How Yelp Built A System For Task Execution
(ARC348) Seagull: How Yelp Built A System For Task Execution
 
Scaling Your Applications with Engine Yard Cloud
Scaling Your Applications with Engine Yard CloudScaling Your Applications with Engine Yard Cloud
Scaling Your Applications with Engine Yard Cloud
 
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
 
Automating Zero-Downtime Production Cluster Upgrades for Amazon ECS
Automating Zero-Downtime Production Cluster Upgrades for Amazon ECSAutomating Zero-Downtime Production Cluster Upgrades for Amazon ECS
Automating Zero-Downtime Production Cluster Upgrades for Amazon ECS
 
The Fifth Elephant 2016: Self-Serve Performance Tuning for Hadoop and Spark
The Fifth Elephant 2016: Self-Serve Performance Tuning for Hadoop and SparkThe Fifth Elephant 2016: Self-Serve Performance Tuning for Hadoop and Spark
The Fifth Elephant 2016: Self-Serve Performance Tuning for Hadoop and Spark
 
Erlang as a cloud citizen, a fractal approach to throughput
Erlang as a cloud citizen, a fractal approach to throughputErlang as a cloud citizen, a fractal approach to throughput
Erlang as a cloud citizen, a fractal approach to throughput
 
Architecture Evolution at Wooga (AWS Cloud Computing for Developers,)
Architecture Evolution at Wooga (AWS Cloud Computing for Developers,)Architecture Evolution at Wooga (AWS Cloud Computing for Developers,)
Architecture Evolution at Wooga (AWS Cloud Computing for Developers,)
 
RMG202 Rainmakers: How Netflix Operates Clouds for Maximum Freedom and Agilit...
RMG202 Rainmakers: How Netflix Operates Clouds for Maximum Freedom and Agilit...RMG202 Rainmakers: How Netflix Operates Clouds for Maximum Freedom and Agilit...
RMG202 Rainmakers: How Netflix Operates Clouds for Maximum Freedom and Agilit...
 
High Performance Computing with AWS
High Performance Computing with AWSHigh Performance Computing with AWS
High Performance Computing with AWS
 
Docker Cluster Management with ECS
Docker Cluster Management with ECSDocker Cluster Management with ECS
Docker Cluster Management with ECS
 
Cloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostCloud Economics: Optimising for Cost
Cloud Economics: Optimising for Cost
 

Ähnlich wie Journey Through the AWS Cloud; Cost Optimisation

Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdfCurtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
RebaMaheen
 
JITServerTalk-OSS-2023.pdf
JITServerTalk-OSS-2023.pdfJITServerTalk-OSS-2023.pdf
JITServerTalk-OSS-2023.pdf
RichHagarty
 

Ähnlich wie Journey Through the AWS Cloud; Cost Optimisation (20)

AWS Initiate Berlin - Einführung in AWS - Eine Übersicht
AWS Initiate Berlin - Einführung in AWS - Eine ÜbersichtAWS Initiate Berlin - Einführung in AWS - Eine Übersicht
AWS Initiate Berlin - Einführung in AWS - Eine Übersicht
 
An Introduction to AWS - AWS Summit Bahrain 2017
An Introduction to AWS - AWS Summit Bahrain 2017An Introduction to AWS - AWS Summit Bahrain 2017
An Introduction to AWS - AWS Summit Bahrain 2017
 
Getting Started with Amazon EC2 and AWS Compute Services
Getting Started with Amazon EC2 and AWS Compute ServicesGetting Started with Amazon EC2 and AWS Compute Services
Getting Started with Amazon EC2 and AWS Compute Services
 
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
 
Getting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute ServicesGetting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute Services
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Getting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute ServicesGetting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute Services
 
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
Reducing Cost & Maximizing Efficiency: Tightening the Belt on AWS (CPN211) | ...
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
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
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
Microsoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiencyMicrosoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiency
 
Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdfCurtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
Curtis-Bray_Amazon_Introduction-to-Amazon-EC2.pdf
 
Agile metrics and quality
Agile metrics and qualityAgile metrics and quality
Agile metrics and quality
 
JITServerTalk-OSS-2023.pdf
JITServerTalk-OSS-2023.pdfJITServerTalk-OSS-2023.pdf
JITServerTalk-OSS-2023.pdf
 
Advanced Map Caching Topics
Advanced Map Caching TopicsAdvanced Map Caching Topics
Advanced Map Caching Topics
 
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
 
Ceph Day Amsterdam 2015 - Ceph backing the first Government Cloud in the Neth...
Ceph Day Amsterdam 2015 - Ceph backing the first Government Cloud in the Neth...Ceph Day Amsterdam 2015 - Ceph backing the first Government Cloud in the Neth...
Ceph Day Amsterdam 2015 - Ceph backing the first Government Cloud in the Neth...
 
JITServerTalk JCON World 2023.pdf
JITServerTalk JCON World 2023.pdfJITServerTalk JCON World 2023.pdf
JITServerTalk JCON World 2023.pdf
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 

Mehr von Amazon Web Services

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

Mehr von 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
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Journey Through the AWS Cloud; Cost Optimisation

  • 1. Journey through the Cloud: Cost optimization Ryan Shuttleworth – Technical Evangelist @ryanAWS
  • 2. Journey through the cloud Common use cases & stepping stones into the AWS cloud Learning from customer journeys Best practices to bootstrap your projects
  • 3. Cost Optimization A key step in the cloud journey Realize cost aware architectures Use elasticity to real and measurable benefit Do more, use less
  • 4. Agenda Fundamentals of AWS cost optimization Cost optimization in 5 steps Where to go next
  • 5. Fundamentals of cost optimization
  • 7. Why optimize? Utility Compute and Storage are a utility so ‘turning off’ should be natural
  • 8. Why optimize? Utility Efficiency Compute and Storage Efficiency allows are a utility so ‘turning more to be done off’ should be natural within a given budget
  • 9. Why optimize? Utility Efficiency Architecture Compute and Storage Efficiency allows Cost awareness drives are a utility so ‘turning more to be done adoption of 21st century off’ should be natural within a given budget architectures
  • 10. Turn off the lights When you stop EC2 resources you stop paying for them
  • 11. Be elastic Support workloads with the right amount of horsepower to get the job done
  • 12. Continually optimize Drive recurring and improving savings through cost aware architectures
  • 13. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 14. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 15. Server Load 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 of day
  • 16. Server Load Capacity of 1 Server 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 of day
  • 17. Traditional capacity required Server Load Capacity of 1 Server 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 of day
  • 18. Traditional capacity required Server Load Capacity of 1 Server 1 Server for 8 hours 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 of day
  • 19. Traditional capacity required Server Load Capacity of 1 Server 1 Server for 8 hours 1 Server for 8 hours 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 of day
  • 20. Traditional capacity required 1 Server for 8 hours Server Load Capacity of 1 Server 1 Server for 8 hours 1 Server for 8 hours 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 of day
  • 21. Traditional capacity required 1 Server for 8 hours Server Load Capacity of 1 Server 1 Server for 8 hours 1 Server for 8 hours 1 Server for 8 hours 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 of day
  • 22. Traditional capacity required Server Load Capacity of 1 Server 1/3rd Saving 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 of day
  • 28. Time: +00h <10 cores Elastic Capacity
  • 29. Time: +24h >1500 cores Elastic Capacity
  • 30. Time: +72h <10 cores Elastic Capacity
  • 31. Time: +120h >600 cores Elastic Capacity
  • 32. Auto-scaling policies Manually By Schedule Send an API call or use CLI to Scale up/down based on date launch/terminate instances – and time Only need to specify capacity change (+/-) By Policy Auto-Rebalance Scale in response to changing Instances are automatically conditions, based on user launched/terminated to configured real-time ensure the application is monitoring and alerts balanced across multiple Azs
  • 33. Auto-scaling policies Scaling base on Policy Scaling by Schedule Scale up and down base on metrics Scheduled Actions to meet known demand Scaling Up policy - Double the group size if avg cpu > 80% Scheduled up to 31 days into the future Scaling Down policy - Decrement by Recurring scheduled scaling activities 10% if avg cpu < 30%
  • 34. 6 5 Instance Count 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 Day of Month
  • 35. 6 5 Monthly Instance Count 4 predictable 3 peak processing 2 1 0 0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 Day of Month
  • 36. Traditional capacity required 6 5 Instance Count 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 Day of Month
  • 37. Traditional capacity required 6 5 Instance Count 4 3 2 1 Elastic Capacity 0 0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 Day of Month
  • 38. Traditional capacity required 6 5 Instance Count 4 75 % Savings 3 2 1 Elastic Capacity 0 0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 Day of Month
  • 39. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 40. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 42. Instance types Start Choose instance that meets your basic requirements best Match memory & virtual cores
  • 43. Instance types Start Tune Choose instance that Change instance size up meets your basic or down based upon requirements best monitoring Match memory & virtual Use trusted advisor to cores assess
  • 44. Instance types Start Tune Spread Choose instance that Change instance size up Run instances across meets your basic or down based upon multiple availability requirements best monitoring zones Match memory & virtual Use trusted advisor to Smaller sizes equals cores assess greater granularity
  • 45. Know your usage Free Memory Free CPU Free HDD PUT 2 weeks … Custom Metrics … Amazon Instance At 1-min intervals Alarm CloudWatch
  • 46. Choose your metric optimize for the metric
  • 47. Choose your metric optimize for the metric Cost per unit of work per instance(size) Workload A Workload B Workload C Optimal on 4x Optimal on 10x Optimal on 2x m1.xlarge m1.medium m3.xxlarge
  • 48. Choose your metric optimize for the metric Cost per unit of work per instance(size) 100 concurrent jobs on 10 x m1.large @ $0.26 / hr = $ 0.026 / job vs 300 concurrent jobs on 10 x m3.xlarge @ $0.58 / hr = $ 0.019 / job
  • 49. Choose your metric optimize for the metric Think workload density Don’t focus on instance hourly rate per se
  • 51. Master Account aws.invoices@mycompany.com consolidated billing information Division B admin@divisionB.com IAM User2 Dev2 Admin2
  • 52. Master Account aws.invoices@mycompany.com consolidated billing information Tags: (key- value) Division B e.g Own=Div Proj=R admin@divisionB.com IAM User2 Dev2 Admin2 Tags: Tags: Tags: Own=Div Own=Div Own=Div Proj=P Proj=Q Proj=R
  • 53. Master Account aws.invoices@mycompany.com consolidated billing information Operating Co. A Division B Business Unit C admin@opcoa.com admin@divisionB.com admin@busUnitC.com User1 User2 User3 IAM IAM IAM Dev1 Dev2 Dev3 Admin1 Admin2 Admin3 Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Own=OpCo Own=OpCo Own=OpCo Own=Div Own=Div Own=Div Own=BusC Own=BusC Own=BusC Proj=A Proj=B Proj=C Proj=P Proj=Q Proj=R Proj=X Proj=Y Proj=Z
  • 54. Master Account aws.invoices@mycompany.com consolidated billing information Operating Co. A Division B Business Unit C admin@opcoa.com admin@divisionB.com admin@busUnitC.com User1 User2 User3 IAM IAM IAM Dev1 Dev2 Dev3 Admin1 Admin2 Admin3 Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Own=OpCo Own=OpCo Own=OpCo Own=Div Own=Div Own=Div Own=BusC Own=BusC Own=BusC Proj=A Proj=B Proj=C Proj=P Proj=Q Proj=R Proj=X Proj=Y Proj=Z
  • 55. Programmatic billing access Master Account aws.invoices@mycompany.com S3 CSV consolidated billing information Operating Co. A Division B Business Unit C admin@opcoa.com admin@divisionB.com admin@busUnitC.com User1 User2 User3 IAM IAM IAM Dev1 Dev2 Dev3 Admin1 Admin2 Admin3 Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Own=OpCo Own=OpCo Own=OpCo Own=Div Own=Div Own=Div Own=BusC Own=BusC Own=BusC Proj=A Proj=B Proj=C Proj=P Proj=Q Proj=R Proj=X Proj=Y Proj=Z
  • 56. Programmatic billing access Master Account aws.invoices@mycompany.com S3 CSV consolidated billing information Operating Co. A Division B Business Unit C admin@opcoa.com admin@divisionB.com admin@busUnitC.com User1 User2 User3 IAM IAM IAM Dev1 Dev2 Dev3 Admin1 Admin2 Admin3 Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Tags: Own=OpCo Own=OpCo Own=OpCo Own=Div Own=Div Own=Div Own=BusC Own=BusC Own=BusC Proj=A Proj=B Proj=C Proj=P Proj=Q Proj=R Proj=X Proj=Y Proj=Z
  • 57. Basic Offering 24x7x365 ✓ Developer Forum Access ✓ Documentation ✓ Business Access to support Phone, Chat, Email Enterprise Named Contacts 5 Fastest Response Time 1 Hour Architecture Support Use Case Guidance Best Practice ✓ Diagnostics Tools ✓ Direct Routing ✓ 3rd Party Software ✓ Trusted Advisor ✓
  • 58.
  • 59.
  • 60. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 61. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 62. Reserved instances On-demand instances Unix/Linux instances start at $0.02/hour Pay as you go for compute power Low cost and flexibility Pay only for what you use, no up-front commitments or long-term contracts Use Cases: Applications with short term, spiky, or unpredictable workloads; Application development or testing
  • 63. Reserved instances On-demand instances Reserved instances Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 64. Reserved instances Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 65. Reserved instances Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Medium utilization RI Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability 41-79% utilization Lower costs up to 49% Pay only for what you use, no up-front Helps ensure compute capacity is available Use Cases: Web applications, many heavy commitments or long-term contracts when needed processing tasks, running much of the time Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 66. Reserved instances Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Medium utilization RI Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability 41-79% utilization Lower costs up to 49% Pay only for what you use, no up-front Helps ensure compute capacity is available Use Cases: Web applications, many heavy commitments or long-term contracts when needed processing tasks, running much of the time Use Cases: Use Cases: Applications with short term, spiky, or Light utilization RI unpredictable workloads; Applications with steady state or predictable usage Application development or testing 15-40% utilization Applications that require reserved capacity, Lower costs up to 34% including disaster recovery Use Cases: Disaster Recovery, Weekly / Monthly reporting, Elastic Map Reduce
  • 67. Best RI for Utilisation $18,000 $16,000 $14,000 $12,000 $10,000 Heavy Medium $8,000 Light $6,000 O-Demand $4,000 $2,000 $-
  • 68. Best RI for Utilisation $18,000 $16,000 $14,000 $12,000 $10,000 Heavy Medium $8,000 Light $6,000 O-Demand $4,000 $2,000 $-
  • 69. Optimizing costs with RIs 14 12 10 On Demand 8 Light Utilization RI 6 Medium Utilization RI Heavy utilization RI 4 2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  • 70. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 71. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 72. Spot instances On-demand instances Reserved instances Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 73. Spot instances On-demand instances Reserved instances Spot instances Unix/Linux instances start at 1- or 3-year terms Bid on unused EC2 capacity $0.02/hour Pay low up-front fee, receive significant hourly Spot Price based on supply/demand, Pay as you go for compute power discount determined automatically Low cost and flexibility Low Cost / Predictability Cost / Large Scale, dynamic workload handling Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Use Cases: Applications with flexible start and end times Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable Applications only feasible at very low compute usage prices Application development or testing Applications that require reserved capacity, including disaster recovery
  • 74. Achieving economies of scale 100% Time
  • 75. Achieving economies of scale 100% Reserved capacity Time
  • 76. Achieving economies of scale 100% On On-demand Reserved capacity Time
  • 77. Achieving economies of scale 100% Spot On On-demand Reserved capacity Time
  • 78.
  • 79.
  • 80. If your bid > spot price You get an instance
  • 81. If your bid < spot price Your instance is terminated
  • 82. Architecting for spot instances Decouple components Design for interruption Separate interactive & backend Use SQS, SWF processing Place data in a durable store such as S3, Use frameworks such as Elastic SimpleDB or DynamoDB MapReduce Save progress regularly
  • 83. EMR with spot instances Scenario #1 Job Flow Duration: 14 Hours #1: Cost without Spot 4 instances *14 hrs * $0.50 = $28
  • 84. EMR with spot instances Scenario #1 Scenario #2 Job Flow Job Flow Duration: Duration: 14 Hours 7 Hours #1: Cost without Spot 4 instances *14 hrs * $0.50 = $28
  • 85. EMR with spot instances Scenario #1 Scenario #2 Job Flow Job Flow Duration: Duration: 14 Hours 7 Hours #1: Cost without Spot #2: Cost with Spot 4 instances *14 hrs * $0.50 = $28 4 instances *7 hrs * $0.50 = $14 + 5 instances * 7 hrs * $0.25 = $8.75 Total = $22.75
  • 86. EMR with spot instances Scenario #1 Scenario #2 Job Flow Job Flow Time Savings: 50% Duration: Cost Savings: ~22% Duration: 14 Hours 7 Hours #1: Cost without Spot #2: Cost with Spot 4 instances *14 hrs * $0.50 = $28 4 instances *7 hrs * $0.50 = $14 + 5 instances * 7 hrs * $0.25 = $8.75 Total = $22.75
  • 88. Spot bidding strategies Bid Distribution (for 3 months period) 20% Percentage of the Distribution 18% 16% 14% 12% 10% 8% 6% 4% 2% 0% Bid Price as Percentage of the On-Demand Price
  • 89. Spot bidding strategies Bid Distribution (for 3 months period) 20% Percentage of the Distribution 18% 16% 14% 12% Bid near the RI 10% 8% hourly price 6% 4% 2% 0% Bid Price as Percentage of the On-Demand Price
  • 90. Spot bidding strategies Bid Distribution (for 3 months period) 20% Percentage of the Distribution 18% 16% 14% 12% Bid above the spot price 10% 8% history 6% 4% 2% 0% Bid Price as Percentage of the On-Demand Price
  • 91. Spot bidding strategies Bid Distribution (for 3 months period) 20% Percentage of the Distribution 18% 16% 14% 12% Bid near the 10% on-demand 8% price 6% 4% 2% 0% Bid Price as Percentage of the On-Demand Price
  • 92. Spot bidding strategies Bid Distribution (for 3 months period) 20% Percentage of the Distribution 18% 16% 14% 12% 10% Bid above the on-demand price 8% 6% 4% 2% 0% Bid Price as Percentage of the On-Demand Price
  • 93. Bid near the reserved hourly price You only pay for a full hour
  • 94. Bid near the reserved hourly price You only pay for a full hour (if you are interrupted the hour is free)
  • 95. Bid above the on-demand price Expect fewer interruptions
  • 96. Bid above the on-demand price Expect fewer interruptions (only pay the spot price)
  • 97. Implement cost aware architecture Flip from spot to on-demand as price dictates
  • 99. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 100. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 101. $0.028 per hour DNS Elastic Load Web Servers Balancer Availability Zone
  • 102. $0.028 per hour DNS Elastic Load Web Servers Balancer Availability Zone VS $0.085 per hour EC2 instance (small instance) DNS Web Servers + software LB Availability Zone
  • 103. Consumers Producer SQS queue $0.01 per 10,000 Requests ($0.000001 per Request)
  • 104. Consumers Producer SQS queue $0.01 per 10,000 Requests ($0.000001 per Request) VS $0.085 per hour Producer (small instance) EC2 instance Consumers + software queue
  • 105. Software vs services Software on EC2 AWS Services Pros: ELB, SNS, SQS, SES, SWF, DynamoDB etc Use custom features Pros: Pay as you go Cons: Scalability Requires an instance Availability SPOF High performance Limited to one AZ DIY administration
  • 107. 5 Steps for cost optimization Elastic capacity Instance types Reserved instances Spot instances Complementary services
  • 108. Where to go next
  • 110. Useful links http://aws.amazon.com/whitepapers
  • 111.