Skip to content
BIASED

What DevOps is

Why development and operations pull against each other, the path from commit to production as a value stream, the three ways, the DORA delivery metrics, why small batches lower risk, and how SRE and platform engineering relate.

Throw it over the wall

Courses on operating systems and on Python end with a program that works on one machine. That program is not yet a service: someone must build it the same way every time, ship it to machines they do not log in to, keep it running, notice when it breaks, and change it again without breaking it. This course is about that path — from a commit to a reliable service.

In the traditional arrangement two groups share one system and are measured on opposite things. Developers are rewarded for delivering features, so they want to change often. Operations staff are rewarded for keeping it up, and since most outages follow a change, they want to change rarely. The standoff is resolved with process: a quarterly release, a change advisory board, a Saturday change window. Knowledge is split, changes arrive in large batches, and most of the time is spent waiting in someone else's queue.

The name DevOps comes from tearing that wall down. In 2009 Allspaw and Hammond described deploying more than ten times a day at Flickr, and Debois organized the first DevOpsDays. This course uses the word for the practices, not for a job title.

The value stream from a commit

The first step out of the standoff is to look at the path of a change as one system. Lean manufacturing calls it a value stream: every step from a request to its delivery, with work time and wait time. For software the stream that matters most runs from a commit to the moment the change runs in production. Its length is the lead time for changes.

lead time=∑i(waiti+worki),flow efficiency=∑iworkilead time.\text{lead time} = \sum_i (\text{wait}_i + \text{work}_i), \qquad \text{flow efficiency} = \frac{\sum_i \text{work}_i}{\text{lead time}}.

Worked example. Stages work for 0.5+0.3+2+0.2+0.5=3.50.5 + 0.3 + 2 + 0.2 + 0.5 = 3.5 hours and wait for 18+0.5+96+48+2=164.518 + 0.5 + 96 + 48 + 2 = 164.5 hours. Lead time is 168168 hours — a week — and flow efficiency is 3.5/168=2.1%3.5/168 = 2.1\%. Making CI twice as fast saves nine minutes of the week; releasing every day instead of every week removes most of the 96-hour queue.

How many changes are in flight? Little's law (Little, 1961): if changes enter at rate λ\lambda per day and each spends WW days in the stream, then in a stable system the work in progress is L=λWL = \lambda W. With 10 commits a day and a 7-day lead time, L=70L = 70 changes are written but not yet in front of users.

Key idea. DevOps treats the path from commit to running service as one system and optimizes the flow of changes through it. Most of the time in a slow stream is waiting, so the gains come from removing queues and moving work in small batches.

The three ways

The DevOps Handbook groups the practices into three principles — the three ways:

  1. Flow, from development to the customer: make work visible, keep batches small, limit WIP, automate the path, remove handoffs. Builds, containers and CI/CD are the machinery of flow.
  2. Feedback, from operations back to development: tests on every commit, telemetry from production, alerts that reach the authors, peer review of every change. The reliability section of this course is about feedback.
  3. Continual learning: treat every failure as information about the system. Blameless postmortems, rehearsed failures, time reserved for improving daily work.

A shorter summary is CALMS: culture, automation, lean, measurement, sharing. Tools come second. A team that installs a CI server but still releases quarterly through a change board has the tool and not the flow.

The DORA metrics

Flow needs a measure. Since 2014 the DORA research program has surveyed practitioners on how fast and how safely they deliver. The measurement rests on metrics often called the four (now five) keys:

  • Deployment frequency — how often the team deploys to production.
  • Lead time for changes — from commit to that commit running in production.
  • Change failure rate — share of deployments that need immediate remedy (rollback or hotfix).
  • Failed deployment recovery time — how long recovery from such a failure takes (renamed from "time to restore" in 2023; covers only failures caused by a change).
  • Deployment rework rate (added 2024) — share of deployments that are unplanned fixes after a production incident.

The first group measures throughput, the last two instability. The central finding: they do not trade off — teams that deploy most often also fail least and recover fastest. Speed and safety come from the same practices.

Worked example. From two weeks of pipeline exports: 19 deployments in 10 working days carrying 53 commits. Deployment frequency 1.91.9 per working day, median change lead time 14.514.5 hours, change fail rate 2/19=10.5%2/19 = 10.5\%, median recovery 7878 minutes, rework rate also 2/192/19.

Three cautions: fix definitions first; metrics describe a team's system, not individuals; and Goodhart's law — a metric that becomes a target stops measuring.

Why small batches lower risk

Every practice above pushes toward smaller batches. Why is that safer, when each deployment is a chance to break something?

Let a deployment carry kk changes, each faulty independently with probability pp. The deployment fails if at least one is faulty:

Pfail(k)=1−(1−p)k≤kp.P_{\mathrm{fail}}(k) = 1 - (1 - p)^k \le kp.

Batching does not create faults — over 100 changes the mean number faulty is still 100p100p — it changes what each fault costs. A good change is rolled back with its batch when any of the other k−1k-1 is faulty. Finding one culprit by bisection needs ⌈log⁡2k⌉\lceil\log_2 k\rceil rounds, and interacting faults break that search.

kk PfailP_{\mathrm{fail}} at p=0.05p=0.05 Good change rolled back
1 5.0% 0
10 40.1% 37.0%
20 64.2% 62.3%
50 92.3% 91.9%

With one change per deployment a failure points at its cause. With 20, nearly two deployments in three fail and each rolls back about 18 good changes. Small batches are affordable only when deployments are cheap — the subject of the next section of the course.

SRE and platform engineering

Two neighbouring ideas answer the same problem from other directions.

Site reliability engineering (SRE) began at Google when software engineers were asked to run production. An SRE team writes software to do operations work, caps toil, and makes reliability a measured quantity: a service level objective (for example 99.9% of requests succeeding over 30 days) and an error budget that decides how fast the service may change. The Site Reliability Workbook's joke: class SRE implements interface DevOps.

Platform engineering answers a problem DevOps itself created. If every team owns the whole path to production, every team must know containers, CI, Kubernetes, networking, monitoring and security. A platform team builds an internal developer platform — paved "golden paths" for the common cases — treated as a product with users, not as a ticket queue.

The wall DevOps
Who runs the software a separate operations team the team that builds it, with a platform under it
Size of a release months of changes one change or a few
How risk is controlled boards and change windows small batches, tests, fast rollback
After a failure find who to blame blameless postmortem, fix the system

The next topic, The shell and text tools, is the language in which almost every automated step of the stream is written.

Check your understanding

The same questions as in Pulse. Answers are shared between modes.

Full notes

Answers are saved on the server and tied to this browser until you sign in.