Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to DevOps

Intro to DevOps

An introduction to DevOps presented at the Crabby Admins (LOPSA-Baltimore) meetup.

Nathen Harvey

October 03, 2013
Tweet

More Decks by Nathen Harvey

Other Decks in Technology

Transcript

  1. Nathen Harvey ‣ Technical Community Manager at Opscode ‣ Co-host

    of the Food Fight Show Podcast ‣ Meetup Organizer ‣ Formerly: Web Operations ‣ @nathenharvey 2
  2. Who are you? ‣ Developers? ‣ Systems Administrators? ‣ DevOps?

    ‣ “Business” People? ‣ Executives? 3
  3. DevOps 7 ‣ Cultural and Professional movement ‣ Development and

    Operations working together ‣ Leveraging ideas & processes from other industries ‣ To enable the business
  4. Globalization ‣ 40 years for container ships to move 70%

    of seaborne trade ‣ 22 years for internet access to reach 78% penetration in North America 9 WTO Trends in Globalization http://www.wto.org/english/res_e/booksp_e/anrep_e/wtr08-2b_e.pdf http://www.flickr.com/photos/duke_raoul/2261478794/sizes/l/in/photostream/
  5. Globalization ‣ Online retail sales are 7% of all retail

    sales ‣ 75% of 2011 Thanksgiving shoppers did so online ‣ 42% of all retail purchases were influenced by online research – accounting for ~50% of total retail spending. 10 WTO Trends in Globalization http://www.wto.org/english/res_e/booksp_e/anrep_e/wtr08-2b_e.pdf http://www.flickr.com/photos/duke_raoul/2261478794/sizes/l/in/photostream/
  6. 95% of the western world own cell phones ‣ 42%

    are smartphones ‣ 58% will be on next purchase ‣ 4.2 Billion phones globally for 7.09 Billion people (USCB) 11 http://ssiknowledgewatch.com/2012/05/09/cell-phones-approach-total-penetration-globally-with-smartphones-moving-toward-market-dominance-2/ http://www.brightsideofnews.com/news/2011/1/26/digital-divide-global-household-penetration-rates-for-technology.aspx?pageid=1
  7. The Result: The Coded Business How: Redefinition of how to

    use technology to create business value Why: To rapidly deliver experiences, goods and services to customers What: Consumer-facing businesses Drivers of IT Innovation
  8. The Rise of the Coded Business ‣ Changes are outpacing

    skills development ‣ IT is moving from the back office to the front office ‣ Customers prefer digital consumption ‣ Technology directly supports customer interactions ‣ Accelerated pace of change ‣ Companies must move faster to compete
  9. Patterns of the Coded Business Business Agility Development Velocity and

    Consistency Continuous Delivery IT Automation IT enables Business Agility and becomes a strategic advantage rather than a cost center.
  10. Is the cultural and professional movement that grew directly from

    the collective experience of the pioneers of this transition It’s application to traditional IT is 1:1 The business adaptations encapsulated in Devops will eventually be ubiquitous ....At least, if you want to be great at the next couple decades of global economic growth DevOps
  11. Open Communication ‣ Developers & Operations talk and listen to

    one another ‣ Production & build metrics are available to all ‣ Current infrastructure is documented 25 Walls, Mandi. O’Reilly Media. 2013
  12. Incentive & Responsibility Alignment ‣ Create awesome customer experiences ‣

    Focus on responsibility & accountability, not authority ‣ You are responsible for your own uptime 26 Walls, Mandi. O’Reilly Media. 2013
  13. Respect ‣ You don’t have to like each other but

    you do need to recognize contributions and treat each other well 27 Walls, Mandi. O’Reilly Media. 2013
  14. Trust ‣ Trust that everyone is competent and working toward

    the common goals ‣ Without trust, the tools don’t matter 28 Walls, Mandi. O’Reilly Media. 2013
  15. You’re an Asshole if: 31 ‣ After encountering you, people

    feel oppressed, humiliated, or otherwise worse about themselves ‣ You target people less powerful than you Sutton, Robert. Business Plus. 2007
  16. Effective Communication 33 ‣ Lead with questions, not statements ‣

    Understand the effort and time others have invested ‣ Avoid the passive- aggressive snark http://www.flickr.com/photos/aloha75/4753674243/sizes/l/in/photostream/
  17. Managing Complexity Then Web Servers Application Servers Database Add 1

    server 20+ Changes To Add a New Server… • 2x Web Server Configurations • 2 Web Server Restarts • 4x Database Configurations • 8x Firewall Configurations • DNS Service • Network Configuration • Deployer • 8x Monitoring Changes The Bottom Line… 20+ Changes 12+ New Infrastructure Dependencies 4+ Hours
  18. Managing Complexity Later We added: • Load Balancers • MemCache

    • Search Appliances • Lots of VM’s • More Scale Exponential Increase In: • Configuration Changes • Infrastructure Dependencies • Skills Needed • Greater Risk
  19. How Do we Manage This at Cloud Scale? • Thousands

    of infrastructure dependencies and configurations needed for each change. • Huge Amounts of Time • Increased Cost of Correction of Manual Errors • Huge Need for Talent • Risk of Critical Skills Shortage Managing Complexity Today
  20. Full Automation Common Automation Tasks: Scripts, OS Compliance, Updates &

    Patches Configuration Management Discovery and Visibility Application Management Continuous Deployment Automation is a People, Process, and Technology Journey The Path to the Coded Business
  21. Continuous Delivery 40 ‣ Business needs to deliver a better

    customer experience as quickly and safely as possible. http://www.thoughtworks.com/imgs/continuous-delivery.jpg
  22. Continuous Delivery ‣ Distributed Version Control System ‣ Dependency management

    ‣ Software Configuration ‣ Environments ‣ Continuous Integration 43
  23. Automated Build Infrastructure Devs! Software Configuration Management! (SCM)! Build! Pulling!

    Tag! Payload! N! Payload! 3! Payload! 2! Payload! 1! 46 Application Devs! Infrastructure Devs! Software Configuration Management! (SCM)!
  24. Deployment Pipeline 47 1! 2! ….! Software Configuration Management! (SCM)!

    Build! Pulling! Tag! Payload! N! Payload! 3! Payload! 2! Payload! 1! Create Data (#)! Upload Cookbook! Autodeploy to Local Host! Update DEV! Request Portal! Chef Server! Bootstrap & Autodeploy! Infrastructure Devs! QA! DEV! …..! PROD! 1, 2, … N! …..! N! ! ! Promote! Promote!
  25. Availability ‣ A = MTTF/MTBF = MTTF / (MTTF +

    MTTD + MTTR) ‣ MTTD - Mean time to Diagnose ‣ MTTR - Mean time to Repair ‣ MTTF - Mean time to Failure ‣ MTBF - Mean time between Failures 50
  26. Availability ‣ A = MTTF/MTBF = MTTF / (MTTF +

    MTTD + MTTR) ‣ MTTD - Mean time to Diagnose ‣ MTTR - Mean time to Repair 51
  27. Failure ‣ It’s not “if” but “when” ‣ Focus on

    ‣ MTTD - Mean time to Diagnose ‣ MTTR - Mean time to Repair ‣ MTTR > MTBF! 52
  28. Measure & Alert on the right things! ‣ Is CPU

    usage important enough to measure? ‣ Should you care about an individual host / server? ‣ Are the web servers responding quickly? ‣ How many deploys were completed today? ‣ Are customers able to checkout? 53
  29. Measurement & Monitoring ‣ Service availability > Server availability ‣

    Measure everything, alert on the important metrics ‣ Monitors and measurements are code, treat them as such 54
  30. When is it done? ‣ Committed to version control ‣

    Tests are passing ‣ Deployed to production ‣ Monitored in production ‣ Customers getting value 63
  31. Blameless Post Mortems ‣ Include all stakeholders ‣ Agree on

    timeline ‣ Identify the conditions that led to the failure ‣ Create tickets 64
  32. IT - Extended Family ‣ Infrastructure as a Service ‣

    Platform as a Service ‣ Software as a Service 65
  33. Is the cultural and professional movement that grew directly from

    the collective experience of the pioneers of this transition It’s application to traditional IT is 1:1 The business adaptations encapsulated in Devops will eventually be ubiquitous ....At least, if you want to be great at the next couple decades of global economic growth DevOps
  34. Businesses must deliver better customer experience as quickly and safely

    as possible. Safety matters! Failure to do so will have serious impacts on customer satisfaction and loyalty – just like it did when Sam Walton was the Ghengis Kahn of rural retail. http://www.flickr.com/photos/huffstutterrobertl/5088855119/lightbox/ Continuous Delivery
  35. ‣ "In ten years, I'm certain every COO worth their

    salt will have come from IT. Any COO who doesn't intimately understand the IT systems that actually run the business is just an empty suit, relying on someone else to do their job." Essential Reading 68 Kim, Gene; Behr, Kevin ; Spafford, George (2013-01-10). The Phoenix Project: A Novel About IT, DevOps, and Helping Your Business Win (Kindle Locations 5805-5807). IT Revolution Press. Kindle Edition.
  36. ‣ “The Web is changing the way we live and

    touches every person alive. As more and more people depend on the Web, they depend on us. Web Operations is work that matters” Essential Reading 69 John Allspaw & Jesse Robbins Web Operations: Keeping the Data on Time O’Reilly. 2010.
  37. Want to learn Chef? ‣ 2-Day Chef Fundamentals next week

    in DC ‣ Focused on managing Windows servers with Chef ‣ Tuesday & Wednesday 71