Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Living withoutyour Linemen             OSCON Portland, OR: June 27, 2011, 5pm
Not aboutAutomatticI’m not in Systems and OperationsAutomattic doesn’t work this way
Me = Typical Engineer• Mercurial/   Tempermental• Lack of Attention to   Detail• Can’t multitask
Me = Least Qualifiedto be Lecturing You   Typical Engineer except in one way
Who am I?
Who am I?Me (and others) on a deck of           cards
PHPTerroristHave a nice Chay!
“…when I created the      Web”          — (not) A l Gore
Cha yism  http://phpdoc.info/chayism                            /                                 One ounce of Terry      ...
Chayism  http://phpdoc.info/chayism                               /
Terry Chay does not   walk, or run, or     Chayism  drive, or take an                          http://phpdoc.info/chayism ...
1500 Lines Of   Code  PHP Advent 2009           http://phpadvent.org/2009/                                      1500-lines...
John Henry of     C++
1500 Lines of   Code/Day    (max)        “Except Java”Java: It only takes three years to put in a hard days work!
Outliers        Malcolm Gladwell   10,000 Hours of Diligent          Practicehttp://www.amazon.com/g                      ...
Talent is      Overrated           Geoff Colvin10,000 Hours = 20/week week  * every week * 10 years!http://www.amazon.com/...
1500 lines of codeHalf a Million Line codebase = Peak Day, Every Day, 1Year
Terry Chay doesnt write code, he just    Chayism   thinks it, andminions do it for him     http://phpdoc.info/chayism     ...
Part 1 Why: ThreeObservations
1. SiteOps are your   offensive line   http://terrychay.com/artic                              le/special-    sysadmin-app...
Quarterback  Site Architect
Running Back   Programmer
Wide Receiver   Programmer
Offensive Line  System Operations
Keep YourLine Happy   Last Friday in Julyhttp://www.sysadminday.co                            m/
2. Story of (Ruby on)        Rails
“The Hottest Hacker on      the Earth.”             — WIRED                 Wired 14.04 page 3
“Fuck You.”               nemeier Hansson   —D avid Hei                    David 3:16
“fuckity fuck fucking     fuck fuck.”      —E XPLICIT TAG                    #TCFC +=5
“coding these web appsthemselves involves a lot   of swearing—a lot ofblood, sweat and swear.”               —Me          ...
“Fuck You.”               nemeier Hansson   —D avid Hei                    David 3:16
“I can’t run Rails inmod_ruby on Apache on    a shared host”                 h o has ev er tried       —A nyone w         ...
“Fuck You.”               nemeier Hansson   —D avid Hei                    David 3:16
“Read/Writes as websites  grow don’t scale evenly with    Moore’s Law, so a bigger    machine isn’t solving my     databas...
“Fuck You.”               nemeier Hansson   —D avid Hei                    David 3:16
“Fuck Comcast.”              —Me          Every time the intertubes                                      get tied
The Internet doesnt  go down, Terry       Chayism Chays laptop justgoes into sleep mode     http://phpdoc.info/chayism    ...
“Fucking AT&T.”                        —Me      Every time I use my cell ph                                 one in San Fra...
“Fuck Steve Jobs.   *blargh!*”         —Me               My upgrade to Lion
The real reasontheres no spyware     Chayismfor MacOS is thatits afraid of Terry     http://phpdoc.info/chayism           ...
“$haystack, $needle or $needle, $haystack? I  fucking hate PHP!”           —Me               In UR Website, c0ding UR sh  ...
Terry Chay beat theInternet... with only   Chayism    one quarter           http://phpdoc.info/chayism                    ...
Rock and Hard Place   Scylla and Charybdis
“80% of the effects comefrom 20% of the causes”               — Pareto                http://en.wikipedia.org/wik         ...
“Ruby is really good at what it does. The problem is that for  what Ruby [on Rails] does  really well, I can downloadMatt ...
Rails FAILs?1. (Software   Architectural)   Frameworks FAIL2. Ruby on Rails is a   (software   archiitectural)   framework...
Innovator’s     Dilemma    Clayton M. Christensen    Disruptive Technologieshttp://www.amazon.com/g                       ...
“[Disruptive Technologies] offered      less of what customers inestablished markets wanted and so  could rarely be initia...
“[Disruptive Technologies] suck.”            —(s horter)                Christi anson       C layton                      ...
“The S3 data storage that  Amazon and SmugMugshowed is impressive, but  the EC2 cloud stuff was   the most interesting, be...
iPod 2002     iPod Shuffle 2005   iPhone 2007(Hard Drive)    (first flash RAM)     (“today”)
Shared HostingManaged Hosting   AWS   Colocation
“Rails: It succeeds because it sucks.”                    est imatin g Rails        —M e, Mis                             ...
CruiseControl.rb   Continuous integration
Capistrano   Automated deployment
Vagrant   Automated virtualization
Puppet   Automated configuration
GitHub   Repo as a Service
Heroku   Managed RAILS cloud
3. Story of PHP
PHP’s S3• Simplicity• Scalability• Straighforwardness
“A project done in Java will cost 5 times as much, taketwice as long, and be harder to maintain than a projectdone in a sc...
“That a Java servlet performs better   than a PHP script, under optimal  conditions [has] nothing to do with   scalability...
“PHP is not about purity in CS principles or architecture; it is about solving the ugly web problem with an    admittedly ...
“PHP: It succeeds because it sucks.”                       —Me                          Simplicity + Scalability +        ...
Rock and Hard    PlaceYour drinking habits make me  very, very worried for the        future of PHP
AJAX  Rich sites do the UI in   Javascript and thecommunication via JSON
Speed      MemcachedBefore: PHP waits for dBNow: Performance and      Profiling
Terry Chay doesnt profile his code, he   Chayismjust commands it to     run better.         http://phpdoc.info/chayism     ...
Terry Chayssemicolons make     Chayismthat line of code  74% faster          http://phpdoc.info/chayism                   ...
HipHopConverts PHP to C++
Part 2  What: ThreeInfrastructures
1. Your Infrastructure   on a Shared Host
Lesson: Do More with Less
2. Infrastructure as a      Computer
“The datacenter is the      new box.”             son Ho ffman,        — Ja              Joyent                   http://p...
3. Infrastructure as a        Service
Traditional                  CloudPredict and purchase            ElasticShared->Colocation        Economies of Scale   Pa...
Facebook Open   Compute    Project    http://www.facebook.com/n                               otes/facebook-engineering/bu...
Open-source Data Center Design      Commodity Hardware    Power and cost efficiencies
“It’s usually in abusiness’ best interests  to commoditize its    complements.”           M arco A rment          —       ...
“Whenever iPhone succeeds, Google    succeeds.”         aniel A legre,     —D               -Pacific       f Goog le Asia H...
Infrastructure as  a Commodity    http://www.readwriteweb.c                              om/cloud/2011/04/        what-fac...
Part 3How: Three Levels of   Application
1. Infrastructure as a        Service
Slicehost
Start your own shit• database, Memcache, load balancing• svn/git/GitHub• trac, stats, (and other internal tools)• deployme...
Gentoo is for Ricers
Amazon Web Services
AWS Free                               http://aws.amazon.com/fre                                                        e/...
Three Tiers             EC2, S3, Database (RDS,   Base                   SimpleDB…)              CloudFront, Route 53, Ser...
“Basically [AWS] is  programmable  infrastructure”            f Barr,  Senior       —Jef        Eva  ngelis t AWS         ...
“Why Amazons cloud Titanic went down.”          —CNN             http://money.cnn.com/201                                 ...
2. Platform as a Service
dotCloudhttp://www.dotcloud.com/
Orchestra.io   http://orchestra.io/
ZippyKid http://zippykid.com/
Value adds• Language specification• Framework specialization/optimization• Application specialization• (ex. Expose tools fo...
3. Start Here -> Finish     Somewhere
Programmer as  Operations; Operations as Programmer   (DevOps)     http://en.wikipedia.org/wik                            ...
Start(up) yourself
yism  Security is low priority for Terry  Chay because he      Chaknows the internets     http://phpdoc.info/chayism      ...
PHP was never  about PHPWithout PHP, LAMP would just be LAM(e).
Battle   Woundshttp://terrychay.com/artic                           le/    cuts-and-scars.shtml
Cha yism         http://phpdoc.info/chayism                                   / When Terry Chay throws $10k into the air, ...
Haipingis smarter than you.
Tales of Virality            Terry Chay     OSCON (Business Track)August 28, 2011, 5PM (Room E146)
Terry Chay doesnt  get stage fright.     Stages getfrightened of Terry        Chay.
Terry Chay doesnt                                           get stage fright.@tychay                  http://             ...
Contact Me                                          Terry Chay doesnt                                           get stage ...
Contact Me                                                   Terry Chay doesnt                                            ...
Contact Me                                                    Terry Chay doesnt                                           ...
2011 07 Living without your Linemen—OSCON
2011 07 Living without your Linemen—OSCON
Upcoming SlideShare
Loading in …5
×

2011 07 Living without your Linemen—OSCON

2,754 views

Published on

http://www.oscon.com/oscon2011/public/schedule/detail/18893

If a website architect is the quarterback, then site operations is the offensive line—overworked, underappreciated, and only noticed when it fails. They make you look good. However, four years ago cloud computing networks like Amazon Web Services and Slicehost have appeared. While deficiencies in frameworks in other languages have forced those worlds to adopt Infrastructure-as-a-Service, the PHP world—with it’s ultra-cheap shared-hosting (on one end) and tradition of dominance on some of the most trafficked websites (on the other)—has been slow to move. But as the technology continues to disrupt, modern web engineers will be expected to use their programming skills to not only build, but also provision and maintain fast, scalable websites.

The efficiencies of a web-based language and experience in scalable website architecture offer a unique opportunity for programmers to transfer their skills when wearing a sysop hat. Not to mention some of the best libraries for programming them are written in PHP! When going from a small pet project to a go-live site, maybe we can learn to live without our linemen.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

2011 07 Living without your Linemen—OSCON

  1. 1. Living withoutyour Linemen OSCON Portland, OR: June 27, 2011, 5pm
  2. 2. Not aboutAutomatticI’m not in Systems and OperationsAutomattic doesn’t work this way
  3. 3. Me = Typical Engineer• Mercurial/ Tempermental• Lack of Attention to Detail• Can’t multitask
  4. 4. Me = Least Qualifiedto be Lecturing You Typical Engineer except in one way
  5. 5. Who am I?
  6. 6. Who am I?Me (and others) on a deck of cards
  7. 7. PHPTerroristHave a nice Chay!
  8. 8. “…when I created the Web” — (not) A l Gore
  9. 9. Cha yism http://phpdoc.info/chayism / One ounce of Terry Chay contains seven pounds of awesome
  10. 10. Chayism http://phpdoc.info/chayism /
  11. 11. Terry Chay does not walk, or run, or Chayism drive, or take an http://phpdoc.info/chayism airplane to a place. / He simply uses aKeynote transition.
  12. 12. 1500 Lines Of Code PHP Advent 2009 http://phpadvent.org/2009/ 1500-lines-of- code-by-terry-chay
  13. 13. John Henry of C++
  14. 14. 1500 Lines of Code/Day (max) “Except Java”Java: It only takes three years to put in a hard days work!
  15. 15. Outliers Malcolm Gladwell 10,000 Hours of Diligent Practicehttp://www.amazon.com/g p/product/ 0316017922?tag=terrych ay-20
  16. 16. Talent is Overrated Geoff Colvin10,000 Hours = 20/week week * every week * 10 years!http://www.amazon.com/g p/product/ 0316017922?tag=terrych ay-20
  17. 17. 1500 lines of codeHalf a Million Line codebase = Peak Day, Every Day, 1Year
  18. 18. Terry Chay doesnt write code, he just Chayism thinks it, andminions do it for him http://phpdoc.info/chayism /
  19. 19. Part 1 Why: ThreeObservations
  20. 20. 1. SiteOps are your offensive line http://terrychay.com/artic le/special- sysadmin-appreciation-day. shtml
  21. 21. Quarterback Site Architect
  22. 22. Running Back Programmer
  23. 23. Wide Receiver Programmer
  24. 24. Offensive Line System Operations
  25. 25. Keep YourLine Happy Last Friday in Julyhttp://www.sysadminday.co m/
  26. 26. 2. Story of (Ruby on) Rails
  27. 27. “The Hottest Hacker on the Earth.” — WIRED Wired 14.04 page 3
  28. 28. “Fuck You.” nemeier Hansson —D avid Hei David 3:16
  29. 29. “fuckity fuck fucking fuck fuck.” —E XPLICIT TAG #TCFC +=5
  30. 30. “coding these web appsthemselves involves a lot of swearing—a lot ofblood, sweat and swear.” —Me http://shiflett.org/blog/2006 / aug/blood-sweat-and-swea r- terry-chay-on-pro-php-podc ast
  31. 31. “Fuck You.” nemeier Hansson —D avid Hei David 3:16
  32. 32. “I can’t run Rails inmod_ruby on Apache on a shared host” h o has ev er tried —A nyone w http://blog.dreamhost.com / 2008/01/07/how-ruby-on-r ails- could-be-much-better/
  33. 33. “Fuck You.” nemeier Hansson —D avid Hei David 3:16
  34. 34. “Read/Writes as websites grow don’t scale evenly with Moore’s Law, so a bigger machine isn’t solving my database problems.” e who h as built—Anyon http://terrychay.com/artic th real le/ bsite wi sharting-on-sharding.shtm l a we growth (hock ey stick)
  35. 35. “Fuck You.” nemeier Hansson —D avid Hei David 3:16
  36. 36. “Fuck Comcast.” —Me Every time the intertubes get tied
  37. 37. The Internet doesnt go down, Terry Chayism Chays laptop justgoes into sleep mode http://phpdoc.info/chayism /
  38. 38. “Fucking AT&T.” —Me Every time I use my cell ph one in San Francisco
  39. 39. “Fuck Steve Jobs. *blargh!*” —Me My upgrade to Lion
  40. 40. The real reasontheres no spyware Chayismfor MacOS is thatits afraid of Terry http://phpdoc.info/chayism / Chay
  41. 41. “$haystack, $needle or $needle, $haystack? I fucking hate PHP!” —Me In UR Website, c0ding UR sh it
  42. 42. Terry Chay beat theInternet... with only Chayism one quarter http://phpdoc.info/chayism /
  43. 43. Rock and Hard Place Scylla and Charybdis
  44. 44. “80% of the effects comefrom 20% of the causes” — Pareto http://en.wikipedia.org/wik i/ Pareto_principle
  45. 45. “Ruby is really good at what it does. The problem is that for what Ruby [on Rails] does really well, I can downloadMatt Mullenweg’s WordPress” —Me http://terrychay.com/artic le/is-ruby- the-dog-and-php-the-dogfoo d.shtml
  46. 46. Rails FAILs?1. (Software Architectural) Frameworks FAIL2. Ruby on Rails is a (software archiitectural) framework.3. Ergo…
  47. 47. Innovator’s Dilemma Clayton M. Christensen Disruptive Technologieshttp://www.amazon.com/g p/product/ 0060521996?tag=terrych ay-20
  48. 48. “[Disruptive Technologies] offered less of what customers inestablished markets wanted and so could rarely be initially employed there. They offered a differentpackage of attributes valued only inemerging markets remote from, and unimportant to, the mainstream.” Chris tianson—Clayton Innovator’s Dilemma
  49. 49. “[Disruptive Technologies] suck.” —(s horter) Christi anson C layton Innovator’s Dilemma
  50. 50. “The S3 data storage that Amazon and SmugMugshowed is impressive, but the EC2 cloud stuff was the most interesting, because it is disruptive.” sting Thing @ ost Intere —The M ZendCon Fall 2006
  51. 51. iPod 2002 iPod Shuffle 2005 iPhone 2007(Hard Drive) (first flash RAM) (“today”)
  52. 52. Shared HostingManaged Hosting AWS Colocation
  53. 53. “Rails: It succeeds because it sucks.” est imatin g Rails —M e, Mis Capistrano, CruisceControl.rb, GitHub, a gajillion admin consoles fo r AWS
  54. 54. CruiseControl.rb Continuous integration
  55. 55. Capistrano Automated deployment
  56. 56. Vagrant Automated virtualization
  57. 57. Puppet Automated configuration
  58. 58. GitHub Repo as a Service
  59. 59. Heroku Managed RAILS cloud
  60. 60. 3. Story of PHP
  61. 61. PHP’s S3• Simplicity• Scalability• Straighforwardness
  62. 62. “A project done in Java will cost 5 times as much, taketwice as long, and be harder to maintain than a projectdone in a scripting language such as PHP or Perl.” ip Gree nspun —Phill http://blogs.law.harvard.e du/ philg/2003/09/20/
  63. 63. “That a Java servlet performs better than a PHP script, under optimal conditions [has] nothing to do with scalability. The point is can your application continue to deliver consistent performance as volumeincreases. PHP delegates all the ‘hard stuff’ to other systems.” H arry F uecks — http://blogs.sitepoint.com/t he- j2ee-guy-still-doesnt-get-php /
  64. 64. “PHP is not about purity in CS principles or architecture; it is about solving the ugly web problem with an admittedly ugly, but extremely functional and convenient solution. If you are looking for purity, you are inthe wrong boat. Get out now before you get hit by a wet cat!” Ras mus Lerdorf — http://news.php.net/article. php? group=php.internals&articl e=2715
  65. 65. “PHP: It succeeds because it sucks.” —Me Simplicity + Scalability + Straightforward = Suck = Success!
  66. 66. Rock and Hard PlaceYour drinking habits make me very, very worried for the future of PHP
  67. 67. AJAX Rich sites do the UI in Javascript and thecommunication via JSON
  68. 68. Speed MemcachedBefore: PHP waits for dBNow: Performance and Profiling
  69. 69. Terry Chay doesnt profile his code, he Chayismjust commands it to run better. http://phpdoc.info/chayism /
  70. 70. Terry Chayssemicolons make Chayismthat line of code 74% faster http://phpdoc.info/chayism /
  71. 71. HipHopConverts PHP to C++
  72. 72. Part 2 What: ThreeInfrastructures
  73. 73. 1. Your Infrastructure on a Shared Host
  74. 74. Lesson: Do More with Less
  75. 75. 2. Infrastructure as a Computer
  76. 76. “The datacenter is the new box.” son Ho ffman, — Ja Joyent http://pro.gigaom.com/ 2010/11/the-data-center-is - the-new-box-are-you-ready /
  77. 77. 3. Infrastructure as a Service
  78. 78. Traditional CloudPredict and purchase ElasticShared->Colocation Economies of Scale Pay for server Pay as you go Capitalize No up-front investment Fixed Cost Variable CAPEX OPEXdiscreet allocations fine-grained allocation disassociated costs associated costs staging, RAAD experimentation is cheap9
  79. 79. Facebook Open Compute Project http://www.facebook.com/n otes/facebook-engineering/build ing-efficient- data-centers-with-the-open -compute-
  80. 80. Open-source Data Center Design Commodity Hardware Power and cost efficiencies
  81. 81. “It’s usually in abusiness’ best interests to commoditize its complements.” M arco A rment — http://www.marco.org/201 1/04/09/ facebooks-open-compute-p roject
  82. 82. “Whenever iPhone succeeds, Google succeeds.” aniel A legre, —D -Pacific f Goog le Asia Head o http://www.adnews.com.au/ news/ google-we-want-iphone-to-gr ow
  83. 83. Infrastructure as a Commodity http://www.readwriteweb.c om/cloud/2011/04/ what-facebooks-opencompu te-mea.php
  84. 84. Part 3How: Three Levels of Application
  85. 85. 1. Infrastructure as a Service
  86. 86. Slicehost
  87. 87. Start your own shit• database, Memcache, load balancing• svn/git/GitHub• trac, stats, (and other internal tools)• deployment solution like Capistrano (Ruby)
  88. 88. Gentoo is for Ricers
  89. 89. Amazon Web Services
  90. 90. AWS Free http://aws.amazon.com/fre e/• 750 hours of Amazon EC2 Linux Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*• 750 hours of an Elastic Load Balancer plus 15 GB data processing*• 10 GB of Amazon Elastic Block Storage, plus 1 million I/Os, 1 GB of snapshot storage, 10,000 snapshot Get Requests and 1,000 snapshot Put Requests*
  91. 91. Three Tiers EC2, S3, Database (RDS, Base SimpleDB…) CloudFront, Route 53, Services SQS, SMS, FPS, Mechanical Turk Managment Console, ElasticManagement Beanstalk, Toolkit for Eclipse,Virtual Private Cloud
  92. 92. “Basically [AWS] is programmable infrastructure” f Barr, Senior —Jef Eva ngelis t AWS http://www.amazon.com/g p/product/ 0980576830?tag=terrych ay-20
  93. 93. “Why Amazons cloud Titanic went down.” —CNN http://money.cnn.com/201 1/04/22/ technology/amazon_ec2_c loud_outage/?
  94. 94. 2. Platform as a Service
  95. 95. dotCloudhttp://www.dotcloud.com/
  96. 96. Orchestra.io http://orchestra.io/
  97. 97. ZippyKid http://zippykid.com/
  98. 98. Value adds• Language specification• Framework specialization/optimization• Application specialization• (ex. Expose tools for optimization, deployment, continuous testing, etc.)• (ex. NginX + PHP-FPS (fastcgi) over Apache)• (ex. HipHop compile and optimization for
  99. 99. 3. Start Here -> Finish Somewhere
  100. 100. Programmer as Operations; Operations as Programmer (DevOps) http://en.wikipedia.org/wik i/DevOps
  101. 101. Start(up) yourself
  102. 102. yism Security is low priority for Terry Chay because he Chaknows the internets http://phpdoc.info/chayism / got his back[ups]
  103. 103. PHP was never about PHPWithout PHP, LAMP would just be LAM(e).
  104. 104. Battle Woundshttp://terrychay.com/artic le/ cuts-and-scars.shtml
  105. 105. Cha yism http://phpdoc.info/chayism / When Terry Chay throws $10k into the air, he doesntbother picking it up
  106. 106. Haipingis smarter than you.
  107. 107. Tales of Virality Terry Chay OSCON (Business Track)August 28, 2011, 5PM (Room E146)
  108. 108. Terry Chay doesnt get stage fright. Stages getfrightened of Terry Chay.
  109. 109. Terry Chay doesnt get stage fright.@tychay http:// Stages get terrychay.com/ frightened of Terry “I promise to blog Chay. tychay@php.net more.”
  110. 110. Contact Me Terry Chay doesnt get stage fright.@tychay http:// Stages get terrychay.com/ frightened of Terry “I promise to blog Chay. tychay@php.net more.”
  111. 111. Contact Me Terry Chay doesnt get stage fright. @tychay http:// Stages get terrychay.com/ frightened of Terry “I promise to blog Chay. tychay@php.net more.” http://www.oscon.com/ Leave aoscon2011/public/schedule/ comment! detail/18893
  112. 112. Contact Me Terry Chay doesnt get stage fright. @tychay http:// Stages get terrychay.com/ frightened of Terry “I promise to blog Chay. tychay@php.net more.” http://www.oscon.com/ Leave a oscon2011/public/schedule/ comment! detail/18893 Slides fromhttp://www.slideshare.net/tychay this talk posted soon!

×