Skip to content
$ lynuxpro
← SRE Practices

LESSON 1 OF 17 · BEGINNER · 10 MIN

SRE versus DevOps

Free previewLesson 1 of the 2 free lessons in this Pro course.Unlock all 17

HOW IT WORKSDevOps says what, SRE says how

Developersbuild featuresOperationskeep it runningDevOps ideaswork together, automateSRE practiceSLOs, budgets, toil limitReliable serviceusers happy
1/5

Developers want to ship fast. Operations wants stability. They used to work apart.

In simple words

  • SRE: site reliability engineering: running systems using software-engineering methods, with reliability measured in numbers.
  • DevOps: a culture of developers and operations working together to deliver faster and more safely.
  • 50% rule: SREs spend at most half their time on operations work and the rest on engineering improvements.

Big picture

Site Reliability Engineering (SRE) means treating operations as a software problem. Instead of fixing servers by hand, SREs write code and set clear numbers for how reliable a service must be. The idea started at Google in the early 2000s.

Think of a hospital. Doctors treat patients one by one. Public health teams study what makes people sick and change the system so fewer people get sick. SRE is the public health team of running software.

What SRE and DevOps share

DevOps is a set of ideas: developers and operations work together, ship small changes often, automate, and learn from failures. SRE is a concrete way to do it, with rules and numbers.

A common saying is: class SRE implements interface DevOps. DevOps says what to value. SRE says how to do it.

IdeaDevOpsSRE
Break down walls between dev and opsYesYes
Automate repeated workYesYes, with a limit on manual work (the 50% rule)
Measure everythingYesYes, with SLIs and SLOs
Accept that failures happenYesYes, with an error budget
Learn from incidentsYesYes, with blameless postmortems

The main SRE ideas

IdeaIn plain words
Embrace risk100% reliable is the wrong goal. It costs too much and slows every change. Pick a target that users actually need.
Service level objectives (SLOs)A number, such as "99.9% of requests succeed", that everyone agrees on (lesson 04).
Error budgetThe amount of unreliability the SLO allows. You can spend it on new releases (lesson 04).
Eliminate toilManual, repeated work should be automated away (lesson 02).
MonitoringKnow about problems before users tell you (lessons 03 and 05).
Incident responseHandle outages in an organized way and learn from them (lessons 06 and 07).
SimplicityEvery extra part is one more thing that can break.

The 50% rule

Google's rule says an SRE should spend at most half of their time on operations work, such as tickets and on-call. The other half goes to engineering: automation, tools, and making the service sturdier.

If the operations part grows beyond half, the team pushes work back to the developers or pauses new features until things are fixed. This keeps SRE from turning into a plain support team.

A day in the life

TimeWork
MorningCheck dashboards and any overnight pages. Hand-over from on-call.
MiddayWrite code that automates a manual step, for example auto-scaling or a safer deploy.
AfternoonReview a design with a product team: "What happens when this database is down?"
WeeklyReview the error budget, update runbooks, attend a postmortem review.
On-call weekAnswer pages, run the incident process, write notes.

Team shapes

ShapeWhat it means
EmbeddedAn SRE sits inside a product team.
CentralOne SRE team supports many services and sets standards.
ConsultingA small team reviews designs and teaches others, but does not run the service.
You build it, you run itProduct teams carry the pager and use SRE tools and advice.

Lesson 16 compares these in more detail.

Example: a reliability conversation

Product manager: "Can we ship the new checkout on Friday?"SRE:             "This month's error budget is 70% used, and the last two releases caused incidents."Product manager: "So no?"SRE:             "Ship it behind a feature flag to 5% of users first. If errors stay low, go to 100% on Monday."
OUTPUTterminalutf-8 · 4L

The decision uses data, not opinion or fear. That is the SRE style.

Where SRE came from

In the early 2000s Google had a simple problem: more users every month, and a limited number of people to run the servers. Hiring more operators for each new service did not scale. So Google asked software engineers to run production and to automate everything they could. The result was a team with a new name and a new set of habits. In 2016 Google published the book Site Reliability Engineering, and many companies copied the ideas.

Words you will hear

WordPlain meaning
ServiceSomething users depend on, such as search, checkout or login
ReliabilityThe service works when users need it
AvailabilityThe share of time (or requests) that work correctly
SLIA measurement, for example "percent of requests that succeed"
SLOA target for that measurement, for example 99.9%
SLAA contract with users that says what happens if you miss the target
Error budgetHow much failure the SLO allows
ToilManual, repetitive work with no lasting value
PostmortemA written review after an incident, focused on learning

How to tell if you are doing SRE

Ask these questions about your team:

  • Do we have written reliability targets for our main services?
  • Do we know how much error budget is left this month?
  • Is manual work measured, and is it going down?
  • After a bad incident, do we write down what we learned and fix the causes?
  • Can engineers say "no release now" because the budget is spent, and is that respected?

If most answers are yes, you are doing SRE, whatever the team is called.

Common mistakes

  • Renaming the operations team "SRE" and changing nothing else.
  • Aiming for 100% uptime. Each extra nine costs far more than the last.
  • Letting SREs do only tickets and on-call, with no time to engineer.
  • Treating SRE as a wall: "developers write code, SRE keeps it running". Both own reliability.
  • Starting with tools before agreeing on what "reliable" means.

Summary

  • SRE applies software engineering to operations. DevOps is the culture, SRE is one way to do it.
  • Reliability is a feature with a target (SLO), not a goal of "never fail".
  • The error budget lets teams balance speed and stability with data.
  • Keep manual work under about half the time, and automate the rest away.
  • Next: lesson 02 looks at toil and how to remove it.

CHECK YOUR UNDERSTANDING

3 quick questions

  1. 1. What does SRE mainly do differently from a traditional operations team?

  2. 2. What is the usual limit on manual operations work for an SRE?

  3. 3. Why do SREs not aim for 100% reliability?