What are MTTR, MTTD, MTBF and MTTF?
In one line: These are reliability metrics: MTTD is how fast you notice a problem, MTTR is how fast you recover, MTBF is how long a repairable system runs between failures, and MTTF is how long a non-repairable component lasts before failing.
MTTD — Mean Time To Detect
- From when the problem starts to when someone (or something) notices it.
- Improved by good monitoring, synthetic checks and SLO alerts.
MTTR — Mean Time To Restore / Recover (sometimes Repair or Resolve)
- From when the problem starts (or is detected) to when service is working again.
- Improved by runbooks, fast rollbacks, feature flags, automation and practice.
- Closely related to DORA's "time to restore service".
- Always check which "R" a team means, as definitions vary.
MTBF — Mean Time Between Failures
- Average time a repairable system works between one failure and the next.
- Higher is better. Improved by better testing, redundancy and fixing root causes.
MTTF — Mean Time To Failure
- Average lifetime of something you replace rather than repair (like a disk).
Simple example over a month:
| Incident | Started | Detected | Restored |
|---|---|---|---|
| 1 | 10:00 | 10:04 | 10:20 |
| 2 | 15:00 | 15:10 | 15:40 |
- MTTD = (4 + 10) / 2 = 7 minutes
- MTTR (from start) = (20 + 40) / 2 = 30 minutes
What modern teams focus on: failures will always happen in complex systems, so many teams focus more on fast detection and recovery (low MTTD and MTTR) than on trying to prevent every failure.
Tip for interviews: define them clearly, and give concrete ways you reduced MTTR — for example "added one-click rollback and runbooks; MTTR dropped from 45 to 12 minutes."