SlideShare a Scribd company logo
1 of 49
Running Lean on AWS Once You’ve Made It
Ryan Park, Pinterest Operations
QuickTime™ and a
                                        Planar RGB decompressor
                                     are needed to see this picture.




           Web Application
              Servers




             Internal
           Web Services




Memcache      MySQL          Redis
Architectural Principles          QuickTime™ and a
                              Planar RGB decompressor
                           are needed to see this picture.
Architectural Principles          QuickTime™ and a
                              Planar RGB decompressor
                           are needed to see this picture.




• Simplicity
Architectural Principles          QuickTime™ and a
                              Planar RGB decompressor
                           are needed to see this picture.




• Simplicity

• Flexibility
Architectural Principles          QuickTime™ and a
                              Planar RGB decompressor
                           are needed to see this picture.




• Simplicity

• Flexibility

• Scalability
Architectural Principles          QuickTime™ and a
                              Planar RGB decompressor
                           are needed to see this picture.




• Simplicity

• Flexibility

• Scalability

• Measurability
Measuring and Understanding Your Costs                                     QuickTime™ and a
                                                                       Planar RGB decompressor
                                                                    are needed to see this picture.




Service                Category   July 2012   Aug 2012   Sep 2012

Amazon S3              Storage      $3,880      $4,121     $4,903

Amazon EC2             Compute      $6,505      $7,519    $10,709

Amazon RDS             Compute        $565        $913     $1461

Amazon data transfer   Network      $2,860      $3,025     $3,287

SendGrid               Email          $399        $399      $399

Total expense                      $14,209     $15,977    $20,759

Per 1000 users                        $245        $227      $280
Measuring and Understanding Your Costs          QuickTime™ and a
                                            Planar RGB decompressor
                                         are needed to see this picture.
Optimizing Amazon EC2          QuickTime™ and a
                           Planar RGB decompressor
                        are needed to see this picture.
Optimizing Amazon EC2          QuickTime™ and a
                           Planar RGB decompressor
                        are needed to see this picture.




• Reserved Instances

• Auto Scaling

• Spot Instances
EC2 Reserved Instances          QuickTime™ and a
                            Planar RGB decompressor
                         are needed to see this picture.
EC2 Reserved Instances          QuickTime™ and a
                            Planar RGB decompressor
                         are needed to see this picture.
EC2 Reserved Instances          QuickTime™ and a
                            Planar RGB decompressor
                         are needed to see this picture.
EC2 Reserved Instance Types          QuickTime™ and a
                                 Planar RGB decompressor
                              are needed to see this picture.
EC2 Auto Scaling          QuickTime™ and a
                      Planar RGB decompressor
                   are needed to see this picture.
EC2 Auto Scaling          QuickTime™ and a
                      Planar RGB decompressor
                   are needed to see this picture.
EC2 Auto Scaling          QuickTime™ and a
                      Planar RGB decompressor
                   are needed to see this picture.
EC2 Auto Scaling                                       QuickTime™ and a
                                                   Planar RGB decompressor
                                                are needed to see this picture.




• Prerequisite: Cloud-compatible architecture

  • Automatic service discovery

  • Automatic instance configuration
EC2 Auto Scaling                                                       QuickTime™ and a
                                                                   Planar RGB decompressor
                                                                are needed to see this picture.




• Prerequisite: Cloud-compatible architecture

  • Automatic service discovery

  • Automatic instance configuration

• Scaling criteria

  • Scale dynamically based on CloudWatch metrics

  • Scale predictably according to a schedule that you define
EC2 Auto Scaling             QuickTime™ and a
                         Planar RGB decompressor
                      are needed to see this picture.




  [ryan@macbook:~]$
EC2 Auto Scaling                                                 QuickTime™ and a
                                                             Planar RGB decompressor
                                                          are needed to see this picture.




  [ryan@macbook:~]$ as-create-launch-config WebConfig 
    --image-id ami-3c994355 --instance-type m1.large
EC2 Auto Scaling                                                 QuickTime™ and a
                                                             Planar RGB decompressor
                                                          are needed to see this picture.




  [ryan@macbook:~]$ as-create-launch-config WebConfig 
    --image-id ami-3c994355 --instance-type m1.large
  OK-Created launch config


  [ryan@macbook:~]$
EC2 Auto Scaling                                                     QuickTime™ and a
                                                                 Planar RGB decompressor
                                                              are needed to see this picture.




  [ryan@macbook:~]$ as-create-launch-config WebConfig 
    --image-id ami-3c994355 --instance-type m1.large
  OK-Created launch config


  [ryan@macbook:~]$ as-create-auto-scaling-group WebGroup 
    --launch-configuration WebConfig 
    --availability-zones us-east-1a 
    --min-size 2 --max-size 5
EC2 Auto Scaling                                                     QuickTime™ and a
                                                                 Planar RGB decompressor
                                                              are needed to see this picture.




  [ryan@macbook:~]$ as-create-launch-config WebConfig 
    --image-id ami-3c994355 --instance-type m1.large
  OK-Created launch config


  [ryan@macbook:~]$ as-create-auto-scaling-group WebGroup 
    --launch-configuration WebConfig 
    --availability-zones us-east-1a 
    --min-size 2 --max-size 5
  OK-Created AutoScalingGroup
EC2 Auto Scaling             QuickTime™ and a
                         Planar RGB decompressor
                      are needed to see this picture.




  [ryan@macbook:~]$
EC2 Auto Scaling                                                    QuickTime™ and a
                                                                Planar RGB decompressor
                                                             are needed to see this picture.




  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMinNighttime --auto-scaling-group WebGroup 
    --recurrence "0 6 * * *" --desired-capacity 2
EC2 Auto Scaling                                                    QuickTime™ and a
                                                                Planar RGB decompressor
                                                             are needed to see this picture.




  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMinNighttime --auto-scaling-group WebGroup 
    --recurrence "0 6 * * *" --desired-capacity 2
  OK-Put Scheduled Update Group Action


  [ryan@macbook:~]$
EC2 Auto Scaling                                                    QuickTime™ and a
                                                                Planar RGB decompressor
                                                             are needed to see this picture.




  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMinNighttime --auto-scaling-group WebGroup 
    --recurrence "0 6 * * *" --desired-capacity 2
  OK-Put Scheduled Update Group Action


  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMaxDaytime --auto-scaling-group WebGroup 
    --recurrence "0 14 * * *" --desired-capacity 5
EC2 Auto Scaling                                                    QuickTime™ and a
                                                                Planar RGB decompressor
                                                             are needed to see this picture.




  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMinNighttime --auto-scaling-group WebGroup 
    --recurrence "0 6 * * *" --desired-capacity 2
  OK-Put Scheduled Update Group Action


  [ryan@macbook:~]$ as-put-scheduled-update-group-action 
    WebMaxDaytime --auto-scaling-group WebGroup 
    --recurrence "0 14 * * *" --desired-capacity 5
  OK-Put Scheduled Update Group Action
EC2 Spot Instances                                                              QuickTime™ and a
                                                                            Planar RGB decompressor
                                                                         are needed to see this picture.




  Instance Size             On-Demand Price     Spot Price     Savings
                                                   (Nov. 20)


  Standard Small                  $0.065 / hr   $0.007 / hr       89%


  Standard Large                  $0.260 / hr   $0.026 / hr       90%


  High-Memory Extra Large         $0.450 / hr   $0.035 / hr       92%


  High-CPU Extra Large            $0.660 / hr   $0.070 / hr       89%


  Cluster Compute
                                  $1.300 / hr   $0.260 / hr       80%
  Quadruple Extra Large
No Optimizations          QuickTime™ and a
                      Planar RGB decompressor
                   are needed to see this picture.
Auto Scaling          QuickTime™ and a
                  Planar RGB decompressor
               are needed to see this picture.
Auto Scaling and Reserved Instances          QuickTime™ and a
                                         Planar RGB decompressor
                                      are needed to see this picture.
Auto Scaling, Reserved, and Spot Instances          QuickTime™ and a
                                                Planar RGB decompressor
                                             are needed to see this picture.
No Optimizations          QuickTime™ and a
                      Planar RGB decompressor
                   are needed to see this picture.
Auto Scaling          QuickTime™ and a
                  Planar RGB decompressor
               are needed to see this picture.
Auto Scaling and Reserved Instances          QuickTime™ and a
                                         Planar RGB decompressor
                                      are needed to see this picture.
Auto Scaling, Reserved, and Spot Instances          QuickTime™ and a
                                                Planar RGB decompressor
                                             are needed to see this picture.
We’re Hiring!
http://pinterest.com/about/careers
Contact                                QuickTime™ and a
                                   Planar RGB decompressor
                                are needed to see this picture.




          rpark@pinterest.com


          ryanpark


          StanfordRyan
We are sincerely eager to
 hear your feedback on this
presentation and on re:Invent.

 Please fill out an evaluation
   form when you have a
            chance.

More Related Content

Viewers also liked

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
 
AWS Summit 2014 - Melbourne - Keynote by Mike Clayville
AWS Summit 2014 - Melbourne - Keynote by Mike ClayvilleAWS Summit 2014 - Melbourne - Keynote by Mike Clayville
AWS Summit 2014 - Melbourne - Keynote by Mike ClayvilleAmazon Web Services
 
Etendez votre datacenter avec aws v4
Etendez votre datacenter avec aws v4Etendez votre datacenter avec aws v4
Etendez votre datacenter avec aws v4Amazon Web Services
 
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012Amazon Web Services
 
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 Australia
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 AustraliaNews Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 Australia
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 AustraliaAmazon Web Services
 
AWS Update | London - Reserved Instance Marketplace
AWS Update | London - Reserved Instance MarketplaceAWS Update | London - Reserved Instance Marketplace
AWS Update | London - Reserved Instance MarketplaceAmazon Web Services
 
AWS Procuring Services for Public Sector - Peterson
AWS Procuring Services for Public Sector - PetersonAWS Procuring Services for Public Sector - Peterson
AWS Procuring Services for Public Sector - PetersonAmazon Web Services
 
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012Amazon Web Services
 
Choosing the Right Data Storage Solution
Choosing the Right Data Storage SolutionChoosing the Right Data Storage Solution
Choosing the Right Data Storage SolutionAmazon Web Services
 
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012Amazon Web Services
 
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …Amazon Web Services
 
Utility Supercomputing on AWS - Stowe
Utility Supercomputing on AWS - StoweUtility Supercomputing on AWS - Stowe
Utility Supercomputing on AWS - StoweAmazon Web Services
 
Managing Your Cloud Assets with AWS
Managing Your Cloud Assets with AWSManaging Your Cloud Assets with AWS
Managing Your Cloud Assets with AWSAmazon Web Services
 
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...Amazon Web Services
 
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012Amazon Web Services
 
Journey Through the AWS Cloud: Cost Optimisation
Journey Through the AWS Cloud: Cost OptimisationJourney Through the AWS Cloud: Cost Optimisation
Journey Through the AWS Cloud: Cost OptimisationAmazon Web Services
 
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012Amazon Web Services
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012Amazon Web Services
 
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012Amazon Web Services
 

Viewers also liked (19)

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)
 
AWS Summit 2014 - Melbourne - Keynote by Mike Clayville
AWS Summit 2014 - Melbourne - Keynote by Mike ClayvilleAWS Summit 2014 - Melbourne - Keynote by Mike Clayville
AWS Summit 2014 - Melbourne - Keynote by Mike Clayville
 
Etendez votre datacenter avec aws v4
Etendez votre datacenter avec aws v4Etendez votre datacenter avec aws v4
Etendez votre datacenter avec aws v4
 
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012
CPN204 Windows on Amazon EC2 – Top ten things - AWS re: Invent 2012
 
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 Australia
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 AustraliaNews Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 Australia
News Limited Keynote - Craige Prendleton-Browne - AWS Summit 2012 Australia
 
AWS Update | London - Reserved Instance Marketplace
AWS Update | London - Reserved Instance MarketplaceAWS Update | London - Reserved Instance Marketplace
AWS Update | London - Reserved Instance Marketplace
 
AWS Procuring Services for Public Sector - Peterson
AWS Procuring Services for Public Sector - PetersonAWS Procuring Services for Public Sector - Peterson
AWS Procuring Services for Public Sector - Peterson
 
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012
AWS Customer Presentation: 6Wunderkind - Berlin Summit 2012
 
Choosing the Right Data Storage Solution
Choosing the Right Data Storage SolutionChoosing the Right Data Storage Solution
Choosing the Right Data Storage Solution
 
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012
RMG206 Introduction to Amazon Elastic Beanstalk - AWS re: Invent 2012
 
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …
SEC202 Federal Government Compliance Best Practices in the Cloud - AWS re: …
 
Utility Supercomputing on AWS - Stowe
Utility Supercomputing on AWS - StoweUtility Supercomputing on AWS - Stowe
Utility Supercomputing on AWS - Stowe
 
Managing Your Cloud Assets with AWS
Managing Your Cloud Assets with AWSManaging Your Cloud Assets with AWS
Managing Your Cloud Assets with AWS
 
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
 
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012
STG303 Building Scalable Applications on Amazon S3 - AWS re: Invent 2012
 
Journey Through the AWS Cloud: Cost Optimisation
Journey Through the AWS Cloud: Cost OptimisationJourney Through the AWS Cloud: Cost Optimisation
Journey Through the AWS Cloud: Cost Optimisation
 
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
 
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012
AWS Partner Presentation – Panzura – AWS Cloud Storage for the Enterprise 2012
 

Similar to STP204 Pinterest Pins AWS! Running Lean on AWS Once You've Made It - AWS re: Invent 2012

Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksAmazon Web Services
 
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksAmazon Web Services
 
What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020AWS Chicago
 
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...Amazon Web Services
 
Deployment of DevOps Environment with CA Solutions
Deployment of DevOps Environment with CA SolutionsDeployment of DevOps Environment with CA Solutions
Deployment of DevOps Environment with CA SolutionsNic Swart
 
Rapid Development With Docker Compose
Rapid Development With Docker ComposeRapid Development With Docker Compose
Rapid Development With Docker ComposeJustin Crown
 
Scaling a Web Service
Scaling a Web ServiceScaling a Web Service
Scaling a Web ServiceLeon Ho
 
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...devang-dsshah
 
Scaling digital asset repositories with aem dam and s7 by Devang Shah
Scaling digital asset repositories with aem dam and s7 by Devang ShahScaling digital asset repositories with aem dam and s7 by Devang Shah
Scaling digital asset repositories with aem dam and s7 by Devang ShahAEM HUB
 
Opinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & BuildersOpinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & BuildersDaniel Zivkovic
 
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...Takahiro Harada
 
Integrating with the Photography Ecosystem on Mac OS X
Integrating with the Photography Ecosystem on Mac OS XIntegrating with the Photography Ecosystem on Mac OS X
Integrating with the Photography Ecosystem on Mac OS Xfraserspeirs
 
Galera Multi Master Synchronous My S Q L Replication Clusters
Galera  Multi Master  Synchronous  My S Q L  Replication  ClustersGalera  Multi Master  Synchronous  My S Q L  Replication  Clusters
Galera Multi Master Synchronous My S Q L Replication ClustersPerconaPerformance
 
SRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateSRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateAmazon Web Services
 
React Lifecycle and Reconciliation
React Lifecycle and ReconciliationReact Lifecycle and Reconciliation
React Lifecycle and ReconciliationZhihao Li
 
CI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and FargateCI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and FargateAmazon Web Services
 
Perl: Setting Up An Internal Darkpan
Perl: Setting Up An Internal DarkpanPerl: Setting Up An Internal Darkpan
Perl: Setting Up An Internal Darkpandaoswald
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveAmazon Web Services
 
Dat305 Deep Dive on Amazon Aurora PostgreSQL
Dat305 Deep Dive on Amazon Aurora PostgreSQLDat305 Deep Dive on Amazon Aurora PostgreSQL
Dat305 Deep Dive on Amazon Aurora PostgreSQLGrant McAlister
 

Similar to STP204 Pinterest Pins AWS! Running Lean on AWS Once You've Made It - AWS re: Invent 2012 (20)

Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
 
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
 
What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020
 
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...
Building a Photorealistic Real-Time 3D Configurator with Server-Side Renderin...
 
Deployment of DevOps Environment with CA Solutions
Deployment of DevOps Environment with CA SolutionsDeployment of DevOps Environment with CA Solutions
Deployment of DevOps Environment with CA Solutions
 
Introducing AWS Fargate
Introducing AWS FargateIntroducing AWS Fargate
Introducing AWS Fargate
 
Rapid Development With Docker Compose
Rapid Development With Docker ComposeRapid Development With Docker Compose
Rapid Development With Docker Compose
 
Scaling a Web Service
Scaling a Web ServiceScaling a Web Service
Scaling a Web Service
 
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
 
Scaling digital asset repositories with aem dam and s7 by Devang Shah
Scaling digital asset repositories with aem dam and s7 by Devang ShahScaling digital asset repositories with aem dam and s7 by Devang Shah
Scaling digital asset repositories with aem dam and s7 by Devang Shah
 
Opinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & BuildersOpinionated re:Invent recap with AWS Heroes & Builders
Opinionated re:Invent recap with AWS Heroes & Builders
 
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...
[2018 GDC] Real-Time Ray-Tracing Techniques for Integration into Existing Ren...
 
Integrating with the Photography Ecosystem on Mac OS X
Integrating with the Photography Ecosystem on Mac OS XIntegrating with the Photography Ecosystem on Mac OS X
Integrating with the Photography Ecosystem on Mac OS X
 
Galera Multi Master Synchronous My S Q L Replication Clusters
Galera  Multi Master  Synchronous  My S Q L  Replication  ClustersGalera  Multi Master  Synchronous  My S Q L  Replication  Clusters
Galera Multi Master Synchronous My S Q L Replication Clusters
 
SRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateSRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS Fargate
 
React Lifecycle and Reconciliation
React Lifecycle and ReconciliationReact Lifecycle and Reconciliation
React Lifecycle and Reconciliation
 
CI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and FargateCI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and Fargate
 
Perl: Setting Up An Internal Darkpan
Perl: Setting Up An Internal DarkpanPerl: Setting Up An Internal Darkpan
Perl: Setting Up An Internal Darkpan
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep Dive
 
Dat305 Deep Dive on Amazon Aurora PostgreSQL
Dat305 Deep Dive on Amazon Aurora PostgreSQLDat305 Deep Dive on Amazon Aurora PostgreSQL
Dat305 Deep Dive on Amazon Aurora PostgreSQL
 

More from Amazon Web Services

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

More from Amazon Web Services (20)

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

STP204 Pinterest Pins AWS! Running Lean on AWS Once You've Made It - AWS re: Invent 2012

  • 1. Running Lean on AWS Once You’ve Made It Ryan Park, Pinterest Operations
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. QuickTime™ and a Planar RGB decompressor are needed to see this picture. Web Application Servers Internal Web Services Memcache MySQL Redis
  • 10. Architectural Principles QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 11. Architectural Principles QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Simplicity
  • 12. Architectural Principles QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Simplicity • Flexibility
  • 13. Architectural Principles QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Simplicity • Flexibility • Scalability
  • 14. Architectural Principles QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Simplicity • Flexibility • Scalability • Measurability
  • 15. Measuring and Understanding Your Costs QuickTime™ and a Planar RGB decompressor are needed to see this picture. Service Category July 2012 Aug 2012 Sep 2012 Amazon S3 Storage $3,880 $4,121 $4,903 Amazon EC2 Compute $6,505 $7,519 $10,709 Amazon RDS Compute $565 $913 $1461 Amazon data transfer Network $2,860 $3,025 $3,287 SendGrid Email $399 $399 $399 Total expense $14,209 $15,977 $20,759 Per 1000 users $245 $227 $280
  • 16. Measuring and Understanding Your Costs QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 17. Optimizing Amazon EC2 QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 18. Optimizing Amazon EC2 QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Reserved Instances • Auto Scaling • Spot Instances
  • 19. EC2 Reserved Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 20. EC2 Reserved Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 21. EC2 Reserved Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 22. EC2 Reserved Instance Types QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 23. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 24. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 25. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 26. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Prerequisite: Cloud-compatible architecture • Automatic service discovery • Automatic instance configuration
  • 27. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. • Prerequisite: Cloud-compatible architecture • Automatic service discovery • Automatic instance configuration • Scaling criteria • Scale dynamically based on CloudWatch metrics • Scale predictably according to a schedule that you define
  • 28. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$
  • 29. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-create-launch-config WebConfig --image-id ami-3c994355 --instance-type m1.large
  • 30. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-create-launch-config WebConfig --image-id ami-3c994355 --instance-type m1.large OK-Created launch config [ryan@macbook:~]$
  • 31. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-create-launch-config WebConfig --image-id ami-3c994355 --instance-type m1.large OK-Created launch config [ryan@macbook:~]$ as-create-auto-scaling-group WebGroup --launch-configuration WebConfig --availability-zones us-east-1a --min-size 2 --max-size 5
  • 32. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-create-launch-config WebConfig --image-id ami-3c994355 --instance-type m1.large OK-Created launch config [ryan@macbook:~]$ as-create-auto-scaling-group WebGroup --launch-configuration WebConfig --availability-zones us-east-1a --min-size 2 --max-size 5 OK-Created AutoScalingGroup
  • 33. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$
  • 34. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMinNighttime --auto-scaling-group WebGroup --recurrence "0 6 * * *" --desired-capacity 2
  • 35. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMinNighttime --auto-scaling-group WebGroup --recurrence "0 6 * * *" --desired-capacity 2 OK-Put Scheduled Update Group Action [ryan@macbook:~]$
  • 36. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMinNighttime --auto-scaling-group WebGroup --recurrence "0 6 * * *" --desired-capacity 2 OK-Put Scheduled Update Group Action [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMaxDaytime --auto-scaling-group WebGroup --recurrence "0 14 * * *" --desired-capacity 5
  • 37. EC2 Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture. [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMinNighttime --auto-scaling-group WebGroup --recurrence "0 6 * * *" --desired-capacity 2 OK-Put Scheduled Update Group Action [ryan@macbook:~]$ as-put-scheduled-update-group-action WebMaxDaytime --auto-scaling-group WebGroup --recurrence "0 14 * * *" --desired-capacity 5 OK-Put Scheduled Update Group Action
  • 38. EC2 Spot Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture. Instance Size On-Demand Price Spot Price Savings (Nov. 20) Standard Small $0.065 / hr $0.007 / hr 89% Standard Large $0.260 / hr $0.026 / hr 90% High-Memory Extra Large $0.450 / hr $0.035 / hr 92% High-CPU Extra Large $0.660 / hr $0.070 / hr 89% Cluster Compute $1.300 / hr $0.260 / hr 80% Quadruple Extra Large
  • 39. No Optimizations QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 40. Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 41. Auto Scaling and Reserved Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 42. Auto Scaling, Reserved, and Spot Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 43. No Optimizations QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 44. Auto Scaling QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 45. Auto Scaling and Reserved Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 46. Auto Scaling, Reserved, and Spot Instances QuickTime™ and a Planar RGB decompressor are needed to see this picture.
  • 48. Contact QuickTime™ and a Planar RGB decompressor are needed to see this picture. rpark@pinterest.com ryanpark StanfordRyan
  • 49. We are sincerely eager to hear your feedback on this presentation and on re:Invent. Please fill out an evaluation form when you have a chance.