• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
STP204 Pinterest Pins AWS! Running Lean on AWS Once You've Made It - AWS re: Invent 2012
 

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

on

  • 1,814 views

When you’re starting out, it’s not worth putting a lot of effort into optimizing your costs; you should put your time into growing your business. But as your infrastructure grows, it becomes ...

When you’re starting out, it’s not worth putting a lot of effort into optimizing your costs; you should put your time into growing your business. But as your infrastructure grows, it becomes worthwhile to optimize your use of AWS resources. Ryan Park from Pinterest’s technical operations team presents how they have optimized their infrastructure costs as their site has exploded in popularity.

Statistics

Views

Total Views
1,814
Views on SlideShare
1,814
Embed Views
0

Actions

Likes
2
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

    • Running Lean on AWS Once You’ve Made ItRyan Park, Pinterest Operations
    • QuickTime™ and a Planar RGB decompressor are needed to see this picture. Web Application Servers Internal Web ServicesMemcache 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 2012Amazon S3 Storage $3,880 $4,121 $4,903Amazon EC2 Compute $6,505 $7,519 $10,709Amazon RDS Compute $565 $913 $1461Amazon data transfer Network $2,860 $3,025 $3,287SendGrid Email $399 $399 $399Total expense $14,209 $15,977 $20,759Per 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 thispresentation and on re:Invent. Please fill out an evaluation form when you have a chance.