Slide 1

Slide 1 text

[email protected] / @kastner [email protected] / @johngoulah Put a Button on it Removing Barriers to Going Fast

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

1+ Billion Pageviews Per Month

Slide 4

Slide 4 text

Speed

Slide 5

Slide 5 text

~80 Engineers

Slide 6

Slide 6 text

Barriers

Slide 7

Slide 7 text

Deployinator

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

We’re Hiring http://etsy.com/jobs

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Optimization

Slide 12

Slide 12 text

Happiness

Slide 13

Slide 13 text

Sad Engineers are Bad Engineers

Slide 14

Slide 14 text

Barriers

Slide 15

Slide 15 text

Process

Slide 16

Slide 16 text

“Process is an embedded reaction to prior stupidity” – Clay Shirky

Slide 17

Slide 17 text

Fear

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Correctness

Slide 20

Slide 20 text

Text "My strategy has always been: be wrong as fast as we can, Which basically means, we're gonna screw up, … Let's not be afraid of that." – Andrew Stanton

Slide 21

Slide 21 text

Legacy

Slide 22

Slide 22 text

How?

Slide 23

Slide 23 text

Communication

Slide 24

Slide 24 text

Trust

Slide 25

Slide 25 text

Openness

Slide 26

Slide 26 text

Constant Improvement

Slide 27

Slide 27 text

Then vs. Now

Slide 28

Slide 28 text

2009

Slide 29

Slide 29 text

2009 2011

Slide 30

Slide 30 text

2009 Single Deploy Master

Slide 31

Slide 31 text

2009 2011 Single Deploy Master Anyone Can Deploy

Slide 32

Slide 32 text

2009 Rollback in Fear

Slide 33

Slide 33 text

2009 2011 Rollback in Fear Roll Forward to Victory

Slide 34

Slide 34 text

2009 All Day Deploys

Slide 35

Slide 35 text

2009 2011 All Day Deploys Deploy All Day

Slide 36

Slide 36 text

How… for reals

Slide 37

Slide 37 text

So, what does Etsy optimize for?

Slide 38

Slide 38 text

MTTR vs. MTBF

Slide 39

Slide 39 text

Default to Open

Slide 40

Slide 40 text

Culture First

Slide 41

Slide 41 text

If it’s your first day at Etsy, you must deploy!

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Doing the dumbest thing that can possibly work

Slide 44

Slide 44 text

Committing to Trunk

Slide 45

Slide 45 text

Branching in Code

Slide 46

Slide 46 text

if ($cfg["new_search"]) { // new hotness $resp = search_solr(); } else { // old busted $resp = search_grep(); }

Slide 47

Slide 47 text

Configuration is Code

Slide 48

Slide 48 text

$cfg["new_search"] = true;

Slide 49

Slide 49 text

Blameless Post-mortems

Slide 50

Slide 50 text

Databases are Different

Slide 51

Slide 51 text

Does it Work?

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

6 Change-related incidents in 2010

Slide 55

Slide 55 text

November code-freeze

Slide 56

Slide 56 text

November code-freeze 721 Deploys

Slide 57

Slide 57 text

Deployinator

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

Capistrano

Slide 62

Slide 62 text

Puppet Capistrano

Slide 63

Slide 63 text

Fabric Puppet Capistrano

Slide 64

Slide 64 text

Fabric Chef Puppet Capistrano

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

“Framework”

Slide 71

Slide 71 text

STACK=search rake new_stack

Slide 72

Slide 72 text

run_cmd %Q{cap deploy}

Slide 73

Slide 73 text

log_and_stream "Starting Web deploy
"

Slide 74

Slide 74 text

log_and_shout({ :old_build => old_build, :build => build, :send_email => true })

Slide 75

Slide 75 text

Communication

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

Dashboard Driven Development

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

5:27 < devbot> PRODUCTION deployed by vthommeret version: 7f08b7a-20110722-191739-UTC took: 131.042598 seconds diff: http://deployinator.etsycorp.com/diff/web/0cbf2f0/7f08b7a

Slide 85

Slide 85 text

Etsy Confidential

Slide 86

Slide 86 text

Deployinator Deploy Host Web 1 Web 2 Web N

Slide 87

Slide 87 text

Deployinator Deploy Host Web 1 Web 2 Web N ssh

Slide 88

Slide 88 text

Deployinator Deploy Host Web 1 Web 2 Web N ssh dsh

Slide 89

Slide 89 text

Deployinator Deploy Host Web 1 Web 2 Web N ssh dsh

Slide 90

Slide 90 text

Deployinator Deploy Host Web 1 Web 2 Web N ssh dsh Rsync

Slide 91

Slide 91 text

What’s Stopping You?

Slide 92

Slide 92 text

Know what you’re optimizing for

Slide 93

Slide 93 text

Deployinator is Open Source Software!

Slide 94

Slide 94 text

Deployinator is Open Source Software! http://github.com/etsy/deployinator

Slide 95

Slide 95 text

Deployinator is Open Source Software! http://github.com/etsy/deployinator (right after this talk)

Slide 96

Slide 96 text

Thank you

Slide 97

Slide 97 text

Thank you http://github.com/etsy/deployinator