Shedding Looks Like Success
This function defines the availability SLI for an API. During the evening peak the service starts shedding load and returns 429 Too Many Requests to about 8 percent of traffic, but the SLO dashboard stays at 99.98 percent while support tickets pile up.
def is_good(req):
return req.status < 500
sli = sum(is_good(r) for r in requests) / len(requests)
What is the right correction?
Sign in to answer questions and track your progress
Sign In