Methods and tools exist in IT operations management to maintain service level. One of these is the error budget. After defining it, we will explore how to use it.

The error budget is defined in relation to the SLA

Let us imagine that the business expects a website to be 99% available. This means that on a given period of time, 99% of requests sent to the server received a response with a success code. Consequently we accept that 1% of them either did not receive a response (timeout) or returned a response with an error status. The unavailability budget is 1%.

Or else, if response times must be equal or below 300 milliseconds, 90% guaranteed, it means that we accept 10% of them are longer than 300ms. The slowness budget is 10%.

The error budget is defined as the complement to 100% of the expected success rate, which is fixed by the SLA.

A website must not outrun it's error budget

Now we focus on the previous example of the unavailability budget of 1%. If 2% or worse, 3% of unavailability occurs on production, this would mean the SLA is not respected. Consequences could be either a loss of reputation or financial penalties. Therefore not using more than the error budget is really important.

But how can we guarantee it ? If downtimes are observed, we need to be broad-sighted enough to understand if these are threatening the SLA or if they are small enough to be ignored. There is a method for this.

For instance, on a 24h period of time, if our website receives 10 000 requests, it is allowed to be unavailable 100 times. This means 4 times in one hour. If we observe 4 errors on one hour, or less than 4 this is fine. But if there are 8 errors per hour, at the end of the day, there would be 192, which is almost twice the error budget.

The following graph shows these situations.

The first curve (in green) shows an acceptable error budget consumption. It is slower than the theoretical limit situation (in blue). But the last one (in red) presents a situation that has a problematic tendency. Reacting in this situation with a real-time analysis is a reasonable behavior.

Alerting based on the error budget fast burn rate is a good practice.

Managing the error budget can foster innovation

If the business asks for the release of a new feature that gives the company a competitive advantage but has a large impact, the Product Owner may hesitate to go live. In such case, the error budget is a precious tool. It it is almost already consumed it is better to wait, but if it is only slightly used, it is time to go live !

Conclusion

Simply defined, the error budget is a relevant tool for maintaining reliability while allowing innovation.

Interested in finding the right operational balance ?

Contact me at info@etienne-delmotte.tech