Try
↑ ↓ move↵ openesc close

Interview prep / SLOs and alerting

Senior · SLOs and alerting · System design interview question

Design alerting for a 99.95 percent SLO on a service with low and spiky traffic.

Sketch your own answer first, then compare it with the one below.

A strong answer

Start with why ratios fail here. With few requests, one failure is a huge error ratio and a huge burn rate. A rule written for steady traffic will page for single unlucky requests, and the quiet hours make the ratio meaningless.

Options in order of how often they are right: generate synthetic traffic from probes so there is always a signal to measure; combine small services into one SLO for monitoring; lengthen the windows so a few failures are diluted; or change the product so one failure matters less, such as client retries.

Choose the objective carefully too. A very high target on very low traffic leaves a budget of a handful of requests, so every failure is an incident. Decide whether that is what the business wants.

Then keep the structure: multiple burn rates with paired windows, with fast pairs paging and slow pairs filing tickets. Test the rules by replaying history, counting pages, false pages and time to detect. Throughout, alert on symptoms users feel, such as failed requests, and leave causes like CPU to dashboards.

Sources

Learn it by running it

The slos, error budgets and alerting lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms