Site down at 10 p.m. The developer left at 6

Published · 3 min read · Русский · Українська

Watch the video Watch the video

Your site went down at 10 p.m., and your in-house developer left at 6.

What does it matter what they worked on all day if everything goes down at 8, 9, or 10 p.m. and there's no one around to fix it? You don't need a developer sitting at a computer around the clock. Set up a system that spots the outage, checks what happened, and starts taking action even when no one's at their desk.

Start by checking your site from the outside, the way a visitor sees it: Google Cloud checks a URL you specify and can assess more than just the connection. It can check the site's response, so it catches problems along the customer's path, not just issues with an individual machine. Set up a rule to send an alert by email or through another channel you choose once an outage is confirmed. In the Google Cloud example, that means two failed checks in a row, and the delay depends on your settings.

One failed check isn't enough reason to restart the site right away. The checker itself might not respond, or there could be a temporary network problem. First confirm the outage from several locations, then look at the check history and logs. This guide to troubleshooting uptime checks describes cases like these. An external check shows whether visitors can reach the site, while internal metrics and logs help you find the cause. For example, the app might stop responding after a database problem (Google SRE's guide to monitoring distributed systems).

You can send the alert to an AI assistant, such as Claude, so it can gather check results and logs, explain the likely cause, and suggest what to do next. But decide in advance what it can do on its own and where it needs a person's approval. Don't give it unrestricted permission to change settings, delete data, or restart everything in sight. Include the site address, the time of the outage, the check result, and a clear next step in the message. Otherwise, the person receiving it will see an alert but won't know what to do (Google SRE's monitoring guidelines).

If the cause looks like a single process that's stuck, allow a limited restart and then check that the site responds again. Health checks and readiness checks do different jobs: in Cloud Run, a readiness check stops traffic from going to an instance that isn't ready, but doesn't shut it down; a health check can restart an instance that's stuck (Google Cloud documentation on health checks). Repeated failures shouldn't turn into an endless restart loop. If possible, take the faulty instance out of service first, then restart it according to a rule you've set in advance.

In its outage postmortem, Healthchecks.io reported that alerts arrived about five minutes after the database restarted, but the person on call was unavailable, and the outage lasted about a day. Restarting the process fixed the immediate problem; later, the team fixed how it handled broken connections (Healthchecks.io outage postmortem). Monitoring without someone to receive the alert and a next step won't save you. If the check and the permitted restart don't work, the system should pass a person the cause, the logs, and a list of the steps already taken. That way, your in-house developer can leave at 6, and if the system can't fix an outage overnight, it can bring a person in.

Want this done for your business?

An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step

Sources

  1. Quickstart: Get notified if your app stops responding
  2. Troubleshoot synthetic monitors and uptime checks
  3. Configure health checks for Cloud Run services
  4. Monitoring Distributed Systems
  5. Outage Postmortem - 20 August 2016