sam haskins - o'reilly velocity china 2013 web
TRANSCRIPT
![Page 1: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/1.jpg)
Continuous Deployment
Sam Haskins
Velocity China 2012
Friday, December 21, 12
![Page 2: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/2.jpg)
Friday, December 21, 12
![Page 3: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/3.jpg)
20,000,000 Members
Friday, December 21, 12
![Page 4: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/4.jpg)
800,000 Active Shops
Friday, December 21, 12
![Page 5: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/5.jpg)
17,000,000 items
Friday, December 21, 12
![Page 6: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/6.jpg)
0
150
300
450
600
2005 2006 2007 2008 2009 2010 2011
525.6
306.7
176.8
87.3
263.80.17
Millions of $
Friday, December 21, 12
![Page 7: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/7.jpg)
0
150
300
450
600
2005 2006 2007 2008 2009 2010 2011
525.6
306.7
176.8
87.3
263.80.17
Millions of $
Friday, December 21, 12
![Page 8: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/8.jpg)
(deploys/day)
Friday, December 21, 12
![Page 9: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/9.jpg)
0
150
300
450
600
2005 2006 2007 2008 2009 2010 2011
525.6
306.7
176.8
87.3
263.80.17
Millions of $
Friday, December 21, 12
![Page 10: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/10.jpg)
200 deployers
Friday, December 21, 12
![Page 11: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/11.jpg)
200 deployersEngineers?
Friday, December 21, 12
![Page 12: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/12.jpg)
200 deployersEngineers +Designers
Friday, December 21, 12
![Page 13: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/13.jpg)
200 deployersEngineers +Designers +Product
Friday, December 21, 12
![Page 14: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/14.jpg)
33 deploys/day
Friday, December 21, 12
![Page 15: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/15.jpg)
33 deploys/day(average that includes weekends)
Friday, December 21, 12
![Page 16: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/16.jpg)
33 deploys/day(average that includes weekends)
(just the web stack)
Friday, December 21, 12
![Page 17: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/17.jpg)
Continuous Deployment
Friday, December 21, 12
![Page 18: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/18.jpg)
Take the ceremonyout of releases
Friday, December 21, 12
![Page 19: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/19.jpg)
Smaller changes,more often
Friday, December 21, 12
![Page 20: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/20.jpg)
Fewer changes/deploy=
Fewer things thatcan go wrong
Friday, December 21, 12
![Page 21: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/21.jpg)
Fewer changes/deploy=
Easier to see effects of your change
Friday, December 21, 12
![Page 22: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/22.jpg)
Friday, December 21, 12
![Page 23: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/23.jpg)
How to implement
Friday, December 21, 12
![Page 24: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/24.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 25: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/25.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 26: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/26.jpg)
<?php// search engine
$results = Search::use_grep($_GET[‘query’]);print_r($results);
Friday, December 21, 12
![Page 27: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/27.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 28: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/28.jpg)
$ curl http://shaskins.dev.etsy.com/search.php?query=bowties
Friday, December 21, 12
![Page 29: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/29.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 30: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/30.jpg)
$ scp -r ~/code webserver.prod.etsy.com:/docroot
Friday, December 21, 12
![Page 31: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/31.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 32: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/32.jpg)
$ tail -f access_log[15/Nov/2012:17:14:41 +0000] "GET /search?query=bowties" 200 [15/Nov/2012:17:14:42 +0000] "GET /search?query=knit+hat" 200[15/Nov/2012:17:14:45 +0000] "GET /search?query=vintage+chair" 200
Friday, December 21, 12
![Page 33: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/33.jpg)
Friday, December 21, 12
![Page 34: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/34.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 35: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/35.jpg)
“Always Ship Trunk”Paul Hammondhttp://www.paulhammond.org/2010/06/trunk/
Friday, December 21, 12
![Page 36: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/36.jpg)
Centralized configuration file
Friday, December 21, 12
![Page 37: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/37.jpg)
<?php// Site configuration
$config[‘search’] = array( ‘enabled’ => ‘on’ ));
Friday, December 21, 12
![Page 38: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/38.jpg)
<?php// search engine
$results = Search::use_grep($_GET[‘query’]);print_r($results);
Friday, December 21, 12
![Page 39: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/39.jpg)
<?php// search engineif (!Feature::isEnabled(‘search’)) { header(‘HTTP/1.1 503 Service Unavailable’);}
$results = Search::use_grep($_GET[‘query’]);print_r($results);
Friday, December 21, 12
![Page 40: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/40.jpg)
<?php// Site configuration
$config[‘search_method’] = array( ‘grep’ => ‘100%’
));
Friday, December 21, 12
![Page 41: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/41.jpg)
<?php// Site configuration
$config[‘search_method’] = array( ‘grep’ => ‘100%’, ‘solr_service’ => ‘0%’ ));
Friday, December 21, 12
![Page 42: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/42.jpg)
<?php// search engineif (!Feature::isEnabled(‘search’)) { header(‘HTTP/1.1 503 Service Unavailable’); exit();}
$results = Search::use_grep($_GET[‘query’]);
print_r($results);Friday, December 21, 12
![Page 43: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/43.jpg)
<?php// search engineif (!Feature::isEnabled(‘search’)) { header(‘HTTP/1.1 503 Service Unavailable’); exit();}
switch (Feature::variant(‘search_method’)) { case ‘grep’: $results = Search::use_grep($_GET[‘query’]); break;
case ‘solr_service’: $results = Search::use_solr($_GET[‘query’]); break;}
print_r($results);Friday, December 21, 12
![Page 44: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/44.jpg)
Lots of types of options
Friday, December 21, 12
![Page 45: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/45.jpg)
<?php// Site configuration
$config[‘new_feature’] = array( ‘enabled’ => ‘0%’, ‘admin’ => ‘on’ ));
Friday, December 21, 12
![Page 46: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/46.jpg)
<?php// Site configuration
$config[‘new_feature’] = array( ‘enabled’ => ‘0%’, ‘users’ => array( ‘test_user’, ‘big_seller’, ‘best_friend’ ) ));
Friday, December 21, 12
![Page 47: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/47.jpg)
<?php// Site configuration
$config[‘new_feature’] = array( ‘enabled’ => ‘0%’, ‘groups’ => array( 1234, 6742 ) ));
Friday, December 21, 12
![Page 48: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/48.jpg)
<?php// Site configuration
$config[‘new_feature’] = array( ‘enabled’ => array( ‘variant_1’ => ’15%’, ‘variant_2’ => ’20%’, ‘control‘ => ’65%’ ) ));
Friday, December 21, 12
![Page 49: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/49.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 50: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/50.jpg)
Friday, December 21, 12
![Page 51: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/51.jpg)
Development Staging Production
Friday, December 21, 12
![Page 52: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/52.jpg)
Development
Friday, December 21, 12
![Page 53: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/53.jpg)
DevelopmentSeparate database
Friday, December 21, 12
![Page 54: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/54.jpg)
DevelopmentSeparate databaseSeparate network
Friday, December 21, 12
![Page 55: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/55.jpg)
Staging and Production
Friday, December 21, 12
![Page 56: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/56.jpg)
Staging and ProductionSame databases
Friday, December 21, 12
![Page 57: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/57.jpg)
Staging and ProductionSame databasesSame caches
Friday, December 21, 12
![Page 58: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/58.jpg)
Staging and ProductionSame databasesSame cachesSame services
Friday, December 21, 12
![Page 59: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/59.jpg)
Staging and ProductionSame databasesSame cachesSame servicesSame hardware
Friday, December 21, 12
![Page 60: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/60.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 61: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/61.jpg)
_________ ______ _____ ___________ /_____ ________ ___ /______ _____ _____(_)_______ ______ ___ /_______ _________ __ / _ _ \___ __ \__ / _ __ \__ / / /__ / __ __ \_ __ `/_ __/_ __ \__ ___// /_/ / / __/__ /_/ /_ / / /_/ /_ /_/ / _ / _ / / // /_/ / / /_ / /_/ /_ /\__,_/ \___/ _ .___/ /_/ \____/ _\__, / /_/ /_/ /_/ \__,_/ \__/ \____/ /_/ /_/ /____/
Friday, December 21, 12
![Page 62: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/62.jpg)
Friday, December 21, 12
![Page 63: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/63.jpg)
Configuration-onlydeploys
Friday, December 21, 12
![Page 64: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/64.jpg)
code
test
release
feedback
Friday, December 21, 12
![Page 65: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/65.jpg)
Metrics
Friday, December 21, 12
![Page 66: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/66.jpg)
MetricsHundreds of thousands of metrics
Friday, December 21, 12
![Page 67: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/67.jpg)
Business Metrics
Friday, December 21, 12
![Page 68: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/68.jpg)
Business MetricsNumber of sales
Friday, December 21, 12
![Page 69: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/69.jpg)
Business MetricsNumber of salesDollars of revenue
Friday, December 21, 12
![Page 70: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/70.jpg)
Business MetricsNumber of salesDollars of revenueSources of traffic
Friday, December 21, 12
![Page 71: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/71.jpg)
Application Metrics
Friday, December 21, 12
![Page 72: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/72.jpg)
Application MetricsApplication actions
Friday, December 21, 12
![Page 73: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/73.jpg)
Application MetricsApplication actionsUsage patterns
Friday, December 21, 12
![Page 74: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/74.jpg)
Application MetricsApplication actionsUsage patternsTimes events happen
Friday, December 21, 12
![Page 75: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/75.jpg)
System Metrics
Friday, December 21, 12
![Page 76: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/76.jpg)
System MetricsCPU usage
Friday, December 21, 12
![Page 77: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/77.jpg)
System MetricsCPU usageNetwork bandwidth
Friday, December 21, 12
![Page 78: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/78.jpg)
System MetricsCPU usageNetwork bandwidthDisk IO
Friday, December 21, 12
![Page 79: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/79.jpg)
Make metricseasy to create
Friday, December 21, 12
![Page 80: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/80.jpg)
<?php// search engine
$results = Search::use_grep($_GET[‘query’]);print_r($results);
Friday, December 21, 12
![Page 81: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/81.jpg)
<?php// search engine
$results = Search::use_grep($_GET[‘query’]);print_r($results);StatsD::increment(‘search.queries’);
Friday, December 21, 12
![Page 82: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/82.jpg)
Friday, December 21, 12
![Page 83: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/83.jpg)
Put them into dashboards
Friday, December 21, 12
![Page 84: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/84.jpg)
Logs
Friday, December 21, 12
![Page 85: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/85.jpg)
Friday, December 21, 12
![Page 86: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/86.jpg)
Make metrics from logs
Friday, December 21, 12
![Page 87: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/87.jpg)
Big-data analytics
Friday, December 21, 12
![Page 88: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/88.jpg)
Culture of trust
Friday, December 21, 12
![Page 89: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/89.jpg)
Tools solve technological friction
Friday, December 21, 12
![Page 90: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/90.jpg)
Culture solves organizational friction
Friday, December 21, 12
![Page 91: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/91.jpg)
Get rid of barriers
Friday, December 21, 12
![Page 92: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/92.jpg)
Get rid of barriers“Talk to ops to get access to the logs”
Friday, December 21, 12
![Page 93: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/93.jpg)
Get rid of barriers“Talk to ops to get access to the logs”“Get approval from CTO to push code”
Friday, December 21, 12
![Page 94: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/94.jpg)
Get rid of barriers“Talk to ops to get access to the logs”“Get approval from CTO to push code”“Release manager pushes the buttons”
Friday, December 21, 12
![Page 95: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/95.jpg)
Take responsibility
Friday, December 21, 12
![Page 96: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/96.jpg)
Something’s broken?
Friday, December 21, 12
![Page 97: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/97.jpg)
Something’s broken?Ops problem?
Friday, December 21, 12
![Page 98: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/98.jpg)
Something’s broken?Ops problem?Developer problem?
Friday, December 21, 12
![Page 99: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/99.jpg)
Something’s broken?Ops problem?Developer problem?Product problem?
Friday, December 21, 12
![Page 100: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/100.jpg)
Something’s broken?Ops problem?Developer problem?Product problem?
Friday, December 21, 12
![Page 101: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/101.jpg)
Something’s broken?Ops problem?Developer problem?Product problem?Problem.
Friday, December 21, 12
![Page 102: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/102.jpg)
Everyone is responsible
Friday, December 21, 12
![Page 103: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/103.jpg)
Dev/Ops/ProductCollaboration
Friday, December 21, 12
![Page 104: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/104.jpg)
Blameless Postmortems
Friday, December 21, 12
![Page 105: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/105.jpg)
Why Etsy Loves Continuous Deployment
Friday, December 21, 12
![Page 106: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/106.jpg)
Features getdeveloped faster
Friday, December 21, 12
![Page 107: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/107.jpg)
Iterative Development
Friday, December 21, 12
![Page 108: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/108.jpg)
Increased confidence
Friday, December 21, 12
![Page 109: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/109.jpg)
Data-backed decisions
Friday, December 21, 12
![Page 110: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/110.jpg)
Better communication
Friday, December 21, 12
![Page 111: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/111.jpg)
Mean time to recovery
Friday, December 21, 12
![Page 112: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/112.jpg)
Tools Mentioned:•Feature flag tool (not yet released, but soon!)•Jenkins (http://jenkins-ci.org)•Deployinator (https://github.com/etsy/deployinator)•StatsD (https://github.com/etsy/statsd)•Graphite (http://graphite.wikidot.com)•Ganglia (http://ganglia.sourceforge.net)•Logster (https://github.com/etsy/logster)•Supergrep (https://github.com/etsy/supergrep)•Much more at https://github.com/etsy
Friday, December 21, 12
![Page 113: Sam Haskins - O'Reilly Velocity China 2013 Web](https://reader031.vdocuments.net/reader031/viewer/2022021208/62062ae78c2f7b1730050f5c/html5/thumbnails/113.jpg)
Thanks!
Friday, December 21, 12