Advertisement
Advertisement

More Related Content

Advertisement

Devops For Drupal

  1. Devops, Devops, Drupal Dries Vanlerberghe and Kris Buytaert
  2. Kris Buytaert @krisbuytaert ● I used to be a Dev, Then Became an Op ● Senior Linux and Open Source Consultant @inuits.be ● „Infrastructure Architect“ ● Building Clouds since before the Cloud th ● Surviving the 10 floor test ● Co-Author of some books ● Guest Editor at some sites
  3. Dries Vanlerberghe ● I used to be a Dev, and kept it that way! ● Open Source Consultant @inuits.be ● „Developer“ ● +10 years Web development ● Translating business needs to working applications
  4. What's this Devops thing about ?
  5. Alternative Titles ● Tales from Grumpy old Sysadmin ● Devops, Devops, Devops th ● Surviving the 10 floor test ● Why devs hated ops
  6. Devops is a growing movement ● We don't have all the answers yet ● We are reaching out to different communities ● We will point out problems we see.. While we are still working out the solutions
  7. CAMS ● Culture ● Automation ● Measurement ● Sharing Damon Edwards and John Willis
  8. What's the problem ? The community of developers whose work you see on the Web, who probably don’t know what ADO or UML or JPA even stand for, deploy better systems at less cost in less time at lower risk than we see in the Enterprise. This is true even when you factor in the greater flexibility and velocity of startups. Tim Bray , on his blog January 2010
  9. How did we get here ?
  10. The Old Days ● “Put this Code Live, here's a tarball” NOW! ● What dependencies ? ● No machines available ? ● What database ? ● Security ? ● High Availability ? ● Scalability ? ● My computer can't install this ?
  11. Devs vs Ops
  12. 10 days into production ● What High Load ? What Memory usage ? ● Are these Logs ? Or this is actualy customer data ? ● How many users are there , should they launch 100 queries each ?? Oh we're having 10K users ● Why is debugging enabled ? ● Who the fsck wrote this crap ?
  13. 11 days into production
  14. We can solve this ! ● Some people think the Ops work starts on deployment • Ops = both system, app as platform ! ● It starts much earlier ● Get Devs and Ops to talk asap
  15. Talk about Non functional Reqs NOW! ● Security ● Backups ● High Availability ● Upgradability ● Deployment ● Monitoring ● Scale
  16. Breaking the Silos Devs Ops Getting Along
  17. Nirvana An “ecosystem” that supports continuous delivery, from infrastructure, data and configuration management to business. Through automation of the build, deployment, and testing process, and improved collaboration between developers, testers, and operations, delivery teams can get changes released in a matter of hours — sometimes even minutes–no matter what the size of a project or the complexity of its code base. Continuous Delivery , Jez Humble
  18. How many times a day ? ● 10 @ Flickr ● Deployments used to be pain ● Nobody dared to deploy a site ● Practice makes perfect ● Knowing you can vs constantly doing it
  19. How do we get there ?
  20. Todays Enviroments For Devs For Ops ● Version Control ● Version Control ● Automated Build ● Automated Build ● Bugtracking ● Bugtracking ● Continous integration ● Continous integration ● Integrated testing ● Integrated testing ● Automated ● Automated deployment deployment
  21. Infrastructure as Code ● Automated Deployments ● If my computer can't install it , the installer is borken ● Reproducable ● With configuration mgmtThink : • Cfengine,Puppet, Chef ● Put configs under version control
  22. Deploying a Site ● Code vs Config ● Think: • Capistrano, Controltier, .. ● Pulling stuff from version control • Is your repo accessible from production ? ● Ops people like stuf packaged • .rpm, .deb, not .tgz , not .war
  23. Why ops like to package ● Uniquely identify where files come from • Package or cfg-mgmt ● Source repo not always available • Firewall / Cloud etc .. ● Weird deployment locations , no easy access ● Little overhead when you automate ● CONFIG does not belong in a package
  24. Looking for ? “As a system administrator, I can tell when software vendors hate me. It shows in their products.” “DON'T make the administrative interface a GUI. System administrators need a command-line tool for constructing repeatable processes. Procedures are best documented by providing commands that we can copy and paste from the procedure document to the command line. We cannot achieve the same repeatability when the instructions are: "Checkmark the 3rd and 5th options, but not the 2nd option, then click OK." Sysadmins do not want a GUI that requires 25 clicks for each new user.” Thomas A. Limoncelli in ACM Queue December 2010 http://queue.acm.org/detail.cfm?id=1921361
  25. Can you please talk about Drupal now ?
  26. Deploying a Drupal Site ● Drush_make ● Profiles ● Features ,strongarm , Custom code • Configuration as Code ● What with external apps and libraries? • Lucene – Solr – Tika – BI software ● Test before you drive!
  27. Upgrading a site ● Drush • pm-updatecode • Updatedb • Features-update ● Once again, test before you drive! ● But ... what about userdata ?
  28. Challenges ● What about the data ? ● Content vs Config • Drupal provides no clear distinction ● e.g a billing application • Table Creation • Provisioning (e.g. Rates, Call plan types) • Actual Data ● D8 ?
  29. Deploying a Drupal Site ● Drush_make ● Profiles ? • Not reusable for upgrades • Drush site-install profile ● Features ,strongarm , Custom code • Configuration as Code ● D7 Looks Better
  30. Upgrading a site ● Drush • upgrade • Updatedb • Features-update ● But ... what about userdata ?
  31. Challenges ● What about the data ? ● Content vs Config • Drupal provides no clear distinction ● e.g a billing application • Table Creation • Provisioning (e.g. Rates, Call plan types) • Actual Data ● D8 ?
  32. Going Live
  33. High Availabilty
  34. Scalability
  35. Monitor
  36. Devops a definition ● There is no definition ● It certainly isn't a person ● No strict rules ● No strict tools ● It's not even new ● If you aren't doing it already ... .. failure is upon you ...
  37. Surviving the test ! ● After 5+ years of preaching I`m not alone anymore ● Devops, a new Movement ! ● Join the movement ! • Devopsdays.org • Agile System Adminstration GoogleGroups
  38. Contact : Kris Buytaert Kris.Buytaert@inuits.be Further Reading @krisbuytaert http://www.krisbuytaert.be/blog/ http://www.inuits.be/ http://www.virtualization.co m/ http://www.oreillygmt.com/ Inuits Esquimaux 't Hemeltje Kheops Business Gemeentepark 2 Center 2930 Brasschaat Avenue Georges 891.514.231 Lemaître 54 6041 Gosselies +32 473 441 636 889.780.406 +32 495 698 668
  39. Images: http://www.flickr.com/photos/huffstutterrobertl/4135257384/ http://www.flickr.com/photos/brighton/2153602543/ http://www.flickr.com/photos/gchorus/2074271352/ http://www.flickr.com/photos/49024304@N00/2951673691/sizes/l/ http://www.flickr.com/photos/30302096@N06/2953698548/ http://www.flickr.com/photos/jamescridland/613445810/ http://www.flickr.com/photos/johnmcga/4468003947/ And some stuff from my previous devops presentation with @patrickdebois

Editor's Notes

  1. Vagrant etc
  2. Nr of users Nagios Plugins Prod_check
Advertisement