What Time to Detection Means for Your Total Outage Duration

What Time to Detection Means for Your Total Outage Duration

Every minute between the moment your site breaks and the moment someone notices adds a minute to the outage. For website owners, DevOps engineers and on-call developers, **time to detection** is often the largest part of total outage duration that nobody measures. This article covers how detection time fits into the full incident timeline, how check intervals and retry settings add up, and where you can realistically cut minutes off an outage before anyone touches a server.

Breaking an Outage Into Its Real Phases

An outage is not one block of time. It is a chain of phases, and each one can be measured separately. Incident teams usually split it like this: time to detect (TTD), time to acknowledge (TTA), time to diagnose, time to repair, and time to verify recovery. Together they make up what most dashboards call MTTR.

The problem is that post-mortems tend to focus on repair. Engineers talk about the rollback, the config fix, the restart. But the clock started when the first request failed, not when someone opened a terminal.

An experienced SRE reconstructs the timeline from the first failed request in the access logs, not from the first alert. That small change in method often shows that detection and acknowledgment took longer than the fix itself.

How Time to Detection Adds Up in Practice

Detection lag comes from three sources: the check interval, the confirmation logic and the alert delivery path.

Take a monitor with a 5-minute interval. On average the failure starts halfway between two checks, so you lose about 2.5 minutes before the first failed check, and up to 5 minutes in the worst case. Add two confirmation retries at the same interval and you’re at 10-15 minutes before an alert fires. Then the email has to arrive and someone has to read it.

Compare that with a 1-minute interval and a quick confirmation from a second location. The first failed check lands within 60 seconds, confirmation takes another 30-60 seconds, and the downtime alert goes out roughly 1-2 minutes after the failure began. That difference is why monitoring every minute makes a real difference to the numbers you report afterwards.

Timeouts matter too. A 30-second timeout with three retries means a hanging server can eat 90 seconds or more per check cycle before anything is declared down. Tuning these values is a balance, and choosing timeout and retry settings for HTTP uptime checks deserves its own review.

A Familiar Saturday Night Scenario

Picture a WooCommerce store on a single VPS running Nginx and PHP-FPM. At 22:40 on a Saturday, a plugin update triggers a memory leak. By 22:55 the PHP-FPM pool is exhausted and Nginx returns 502 Bad Gateway to every visitor.

The fix is trivial: restart PHP-FPM and roll back the plugin. Five minutes of work at most. But there is no external uptime check. The owner finds out on Monday at 08:15, when a customer emails about a failed order.

Total outage: about 57 hours. Time to repair: 5 minutes. Time to detection: everything else. With a 1-minute HTTP check sending alerts to a phone, the same incident would likely have lasted 10-20 minutes, depending on how quickly the owner responded.

Myth: Detection Is the Small Part of an Outage

A common belief is that detection is a rounding error and the real time goes into fixing things. For complex distributed failures, that can be true. A database replication issue or a cascading microservice failure can take hours to diagnose.

But most website outages are not like that. Expired SSL certificates, full disks, crashed processes, broken deploys and DNS mistakes are usually fixed in minutes once someone sees them. For these incidents, detection and acknowledgment often account for 60-90% of total outage duration.

The other half of the myth is that faster checks just mean more false alarms. False positives come from poor confirmation logic, not from frequency. A 1-minute check with multi-location confirmation is usually quieter than a 5-minute check from one location that flags every network blip.

Steps to Shorten Detection and Response

Cutting time to detection is mostly configuration work. A seasoned operations lead usually goes through the setup in this order:

  • Set HTTP monitoring on the pages that matter (homepage, login, checkout) to a 1-minute interval.
  • Use a timeout of 10-15 seconds instead of 30-60, so hanging servers are caught as failures quickly.
  • Confirm failures from a second location instead of waiting for several full check cycles.
  • Send the downtime alert to a person, not a shared inbox, and test that it arrives.
  • Add a fallback path for when the first alert goes unanswered within 10 minutes.

That last step is where many setups fall apart. A fast alert nobody reads is still slow detection in practice. A clear plan for escalation when the first alert goes unanswered closes that gap.

Common Mistakes That Inflate Outage Duration

The first mistake is measuring outages from the alert timestamp. If your post-mortem says “outage lasted 12 minutes” but the logs show errors starting 9 minutes before the alert, your real outage was 21 minutes. Your SLA monitoring is then reporting better availability than your customers experienced.

The second is stacking retries without doing the maths. Teams add retries to reduce noise, then add longer timeouts, then lengthen the interval to save resources. Each change looks reasonable on its own. Combined, they push detection past 15 minutes.

The third is only checking the homepage. A cached homepage served by Cloudflare or another CDN can return 200 OK while the origin is down and checkout is throwing 500 errors. The uptime check stays green and detection time becomes “whenever a customer complains”.

When Slower Detection Is Acceptable

Not every site needs 1-minute checks. An internal HR tool used only 9-5 on weekdays, a static brochure site on Netlify, or a staging environment can reasonably run 5-minute checks. The cost of a few extra minutes of downtime there is close to zero.

Some environments need the opposite care. Sites behind strict WAF rules or bot protection may rate-limit or block frequent probes, which creates false downtime unless monitoring IPs are allowlisted. In regulated sectors such as finance or healthcare, contracts may define outage start from the customer report or from internal monitoring, so check which definition your SLA actually uses before you report numbers.

FAQ

What is a good time to detection for a website?
For customer-facing sites, a TTD of 1-3 minutes is a realistic target with 1-minute checks and fast confirmation. Anything over 10 minutes means a significant part of your monthly downtime budget is spent before anyone knows there’s a problem.

How does detection time affect my SLA?
A 99.9% monthly SLA allows about 43 minutes of downtime. With 15-minute detection, just three short incidents can use up the entire budget before a single fix starts.

Does faster detection cause more false alerts?
Not by itself. False alerts come mainly from single-location checks and overly tight timeouts. Confirming failures from a second location keeps alerts accurate even at a 1-minute interval.

Summary

Total outage duration is the sum of detection, acknowledgment, diagnosis, repair and verification. For most common website failures, the repair is fast and detection is the expensive part. Measure outages from the first failed request, keep check intervals and timeouts short, confirm from more than one location, and make sure alerts reach a person who will act. Saving ten minutes on detection does more for your site availability than shaving ten seconds off a deploy script.