Free lesson · Module 1, lesson 2 of 7

DevOps: a way of working, not a tool

Explain DevOps as one team owning both building and running software, tell it from a hand-over to a separate operations team, and read the four delivery measures (deploy frequency, lead time, change failure rate, time to restore).

Lessons in this module

Lesson notes

For the student

DevOps is a way of working, not a tool and not a job title between two teams: the people who build a change also deploy it and are called when it breaks. Four numbers show whether a team really works that way. Nothing to install for this lesson.

The wall, and one team instead

  • Hand-over: developers write a change and pass it, with a long note, to a separate operations team that installs and runs it
  • DevOps (development and operations): one team builds the change, deploys it through its pipeline, and is on call when it breaks
  • On call: the person who takes the alert when the service breaks, even at night
  • Releases are small and frequent, and the team is judged by numbers, not by "it shipped"

The four delivery measures

  • Deploy frequency (speed): how often you deploy, for example 5 a week
  • Lead time for changes (speed): from the commit to running for users, in hours or days
  • Change failure rate (stability): failed deploys ÷ all deploys, as a percentage
  • Time to restore (stability): from a failure to the service working again; also called failed deployment recovery time
  • Worksheet deploy 3: committed 4 Nov 11:00, live 5 Nov 11:00, so a lead time of 24 hours; fixed 5 Nov 12:30, so 1.5 hours to restore

Reading the numbers

  • 3 failed of 20 deploys is 3 ÷ 20 = 15%, not 3% (a count is not a rate) and not 85% (that share did not fail)
  • Commit Monday 10 am, live Wednesday 10 am: a lead time of 48 hours; time to restore starts at a failure, not at a commit
  • Good teams improve speed and stability together; small changes help all four
  • A pipeline tool with the hand-over kept is not DevOps

Try it

  • Worksheet task 2 in labs/m01/README.md: from the ten deploys in its table, work out the deploy frequency per week, the median lead time, the change failure rate and the time to restore of the failed ones
  • You should have four numbers with their units. Check yours: 10 deploys in two weeks is 5 a week; the median lead time is 3.5 hours; 2 of 10 failed, a change failure rate of 20%; the two failures took 90 and 30 minutes to fix, 1 hour on average

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

What is DevOps, as this lesson defines it?

Question 2 · medium

In one month a team deployed 25 times, and 5 of those deploys caused a failure that needed a fix. What is its change failure rate?

Question 3 · medium

A fix is committed on Tuesday at 9 am and is running for students on Tuesday at 3 pm. Which measure are these six hours?

Question 4 · medium

Four teams describe how they work. Which one works the DevOps way?

Question 5 · hard

Many people believe that going faster must break more. What do good teams show instead?

What happens after the code is writtenNext: The cloud in one picture: computers rented by the minute