Linux Labs

SRE practices: SLOs, incidents, redundancy / Stage 1 of 8

SLI: the share of good requests

Not running Starting usually ~20 s
Leave the lesson

Step 5 of 6 · on a machine · 4 min

Availability for those who complain

The same count, but for part of the requests: an SLI is chosen for what matters to the user.

The complaints are about orders and the cart, and those are the /api/ addresses that nginx passes to the backend. nginx serves the home page and static files itself, and they are fine: in the overall SLI their thousands of good answers dilute the outage. A customer whose orders did not open is not helped by a fast home page. The request path is the line's seventh field, $7.

Exercise · do it

Count the availability of orders and the cart

Count the availability for the last hour for the requests to /api/ addresses only, and put the percentage as one number in ~/sli/api.txt.

Sign in and start The machine is available after signing in

Goals · 0 of 1

  • Put the /api/ availability for the last hour in ~/sli/api.txt not done yet

Step goals

0 of 1
  • Put the /api/ availability for the last hour in ~/sli/api.txt — not done yet
Ubuntu 24.04

Step goals

0 of 1
  • Put the /api/ availability for the last hour in ~/sli/api.txt — not done yet
Loading…