Soru

Zorluk: OrtaDefining and Managing SLOs, SLIs, and Error Budgets

A real-time payment reconciliation API deployed on Google Kubernetes Engine (GKE) has a Service Level Objective (SLO) of 99.9%99.9\% successful requests measured over a 3030-day rolling window. During a given 3030-day period, the API receives a total of 80,000,00080,000,000 valid requests. What is the maximum number of failed requests allowed during this period before the service exhausts its error budget?

Cevap: 80000 requests

Cevap

The maximum number of allowed failed requests before exhausting the error budget is 80,000 requests.
The error budget represents the fraction of bad requests tolerated while maintaining the defined SLO. For a 99.9%99.9\% target across 80,000,00080,000,000 total requests, the allowable error rate is 0.1%0.1\% (0.0010.001). Multiplying 80,000,00080,000,000 requests by 0.0010.001 yields exactly 80,00080,000 allowed failed requests.

Adım Adım Çözüm

1
Calculate the allowable failure rate
Failure rate = 10.999=0.0011 - 0.999 = 0.001 (0.1%0.1\%)
The error budget is the inverse of the target Service Level Objective (SLO).
2
Calculate the absolute error budget in number of requests
Error Budget = 80,000,000×0.001=80,00080,000,000 \times 0.001 = 80,000 requests
Applying the failure rate fraction to the total request volume yields the total count of failed requests tolerated within the SLO window.

Anahtar Kavram

Calculating Request-Based Error Budgets for SLO Management
Bu soruyu puanla