DEVOPS, SRE AND CLOUD · PART 0 · START HERE · PROCESS · 5 OF 187

Agile, Scrum and Kanban for DevOps Teams

How DevOps, SRE and platform teams plan their work: the Agile idea, Scrum sprints and ceremonies, Kanban boards with work-in-progress limits, why ops teams with interrupts usually prefer Kanban, how to protect planned work from tickets and pages, and the words interviews use: backlog, story, sprint, WIP, lead time and cycle time.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
1 / 12

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Small steps
  • backlog
  • Scrum sprints
  • Kanban and WIP limits
  • interrupt rotation
  • flow metrics

Notes

Agile

Agile is the idea underneath. Deliver working software in small, frequent steps, get feedback early, and change the plan as you learn, instead of planning everything for a year and delivering at the end. It comes from the Agile Manifesto, written in two thousand one. DevOps grew out of the same thinking, and extended it from writing software to running it.

The Agile idea
  • deliver working software in small, frequent steps
  • get feedback early
  • change the plan as you learn
  • people and collaboration over heavy process
  • from the Agile Manifesto, 2001

The backlog

Work lives in a backlog: one ordered list of everything the team could do. Items are written as stories when they describe a user need, like, as a developer I can create a staging environment with one click. There are also plain tasks, bugs, and technical debt, the work that keeps systems healthy. The most valuable items sit at the top, and the order is revisited often.

Backlog items
  • story: a user need "as a developer I can create a staging env in one click"
  • task: a piece of work
  • bug: something broken
  • tech debt: work to keep things healthy
  • top = most valuable now

Scrum

Scrum organises work in sprints of one or two weeks. At sprint planning the team picks a goal and the backlog items that serve it. A short daily stand-up surfaces blockers. At the end, a review shows what is done, and a retrospective asks how to work better. Scrum names three roles: a product owner who orders the backlog, a scrum master who helps the process, and the developers. Many product teams you support will work this way.

Scrum in brief
  • sprint: 1 to 2 weeks
  • planning: pick a goal and the items for it
  • daily stand-up: 15 minutes, blockers first
  • review: show what is done
  • retrospective: improve how the team works
  • roles: product owner, scrum master, developers

Kanban

Kanban is simpler. Work moves across a board, from to do, to doing, to done. The key rule is a limit on work in progress: the doing column may hold, say, three items, and new work is pulled in only when one finishes. There are no fixed sprints. Limiting work in progress sounds slow, but it makes work finish faster, because people stop juggling ten half-done things.

A Kanban board
TO DO     DOING (WIP 3)   DONE
upgrade   rotate certs    alerts
  k8s     fix CI cache      tuned
new VPC   access request  ...

pull work only when a
  column has room
no fixed sprints

Why ops likes Kanban

This is why many operations and SRE teams prefer Kanban. An outage cannot wait two weeks for the next sprint planning, and requests arrive every day. Kanban boards usually have an expedite lane for truly urgent items, which are pulled in immediately. Other teams keep Scrum but reserve part of each sprint for unplanned work. Both work; what fails is pretending interrupts will not come.

Ops reality
  • an incident cannot wait two weeks for sprint planning
  • requests arrive every day
  • Kanban: an expedite lane for urgent items, pulled now
  • many ops and SRE teams run Kanban, or Scrum with reserved capacity

Protect planned work

Good teams protect planned work. One person each week takes the interrupt duty: tickets, questions and small requests, so the rest of the team can focus. On-call is planned the same way. Interrupts are counted by type, and the most common ones are automated away, for example letting developers create their own test environments. This is exactly what SREs mean by reducing toil.

Patterns that help
  • interrupt rotation: one person per week handles tickets and questions
  • on-call separate from the project work
  • track interrupts: how many, which kind
  • automate the most common requests away

Flow metrics

Kanban teams measure flow with a few numbers. Lead time runs from when a request is created to when it is done. Cycle time runs from when work actually starts to done. Throughput is how many items finish per week, and work in progress is how many are open right now. Too much work in progress almost always means long cycle times. Note that this lead time is different from DORA's change lead time, which runs from commit to production.

Measure the flow
  • lead time: request created to done
  • cycle time: work started to done
  • throughput: items finished per week
  • WIP: items in progress now
  • too much WIP = long cycle times

Which to choose

Which should you choose? Mostly planned project work with a clear goal suits Scrum. Mostly incoming, varied work suits Kanban. Most DevOps teams have a mix, and do well with Kanban plus work-in-progress limits and a weekly planning review, or Scrum with capacity reserved for interrupts. Whatever you pick, keep the retrospective. A team that never stops to improve how it works stays stuck.

A simple rule
  • mostly planned project work with a clear goal → Scrum
  • mostly incoming, varied work → Kanban
  • a mix → Kanban with WIP limits and a weekly review, or Scrum with reserved capacity
  • keep the retrospective either way

Common mistakes

Mistakes. Sprints planned as if no interrupts will come. No work-in-progress limit, so everything is in progress and nothing finishes. Everyone answering every ticket, so nobody focuses. Interrupts that are never counted, so they never get automated. Stand-ups that become status reports for a manager. And skipping retrospectives.

Avoid these
  • sprints that ignore interrupts
  • no WIP limit: everything is "in progress"
  • everyone answering every ticket
  • tickets nobody counts
  • stand-ups as status reports
  • skipping retrospectives

Say it like this

In the interview: we use Kanban with a work-in-progress limit and an expedite lane for urgent work. One person each week handles interrupts, so the rest of the team stays focused on project work. We count incoming requests by type and automate the most common ones away, and we review our flow and process every week in a short retrospective.

In the interview
  • "We run Kanban with a WIP
  • limit and an expedite lane.
  • One person a week takes
  • interrupts, so the others keep
  • project focus. We count requests
  • by type and automate the top
  • ones, and review flow and process every week."

Interview questions

Q1What is the difference between Scrum and Kanban?

Scrum works in fixed sprints with a goal, planning, daily stand-ups, review and retrospective. Kanban has no sprints: work flows across a board and work in progress is limited.

Q2Why do many ops and SRE teams prefer Kanban?

Their work includes urgent, unplanned items that cannot wait for the next sprint; Kanban pulls work continuously and can have an expedite lane.

Q3What is a WIP limit?

A maximum number of items allowed in a stage (such as Doing); new work is pulled only when something finishes, which shortens cycle time.

Q4What is the difference between lead time and cycle time?

Lead time runs from when a request is created to done; cycle time from when work starts to done.

Q5How do you protect planned work from interrupts?

An interrupt rotation (one person per week takes tickets and questions), separate on-call, counting interrupts by type, and automating the most common requests.

Q6What are the Scrum ceremonies?

Sprint planning, the daily stand-up (daily scrum), sprint review and the retrospective.

Q7What is a backlog?

An ordered list of all work the team could do: stories, tasks, bugs and technical debt, with the most valuable at the top.

Q8How does Agile relate to DevOps?

DevOps extends Agile's small, frequent steps and fast feedback from writing software to delivering and running it.