iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
⛳

Understanding the Basics of SLOs: A Conversation on Reliability

に公開

This is day 6 of my free translation of overseas SRE-related sessions for the Qiita Advent Calendar 2025. It is a solo advent calendar project, but I will do my best to complete it.

In this advent calendar, I translate overseas SRE-related sessions and add my own opinions, questions, and supplements. Please let me know in the comments if there are any points where my misunderstandings have led to incorrect explanations.

My previous entry was a translation of Unified Theory of SRE from SRECon22 Europe/Middle Asia/Africa. It was a session that raised the issue that we need to reconstruct our own SRE, rather than simply imitating Google's or Facebook's SRE.

In this advent calendar, I will distinguish my opinions and comments from the summary as much as possible using the notation below. However, please forgive me if my personal thoughts become mixed into the summary, as I cannot be strictly precise at all times. (Please point it out if you notice.)

About the Session

https://www.youtube.com/watch?v=38PuJJgGc_I

Session details: SLO Basics - a conversation about reliability | SLOconf 2021

In this session, I would like to touch upon practices such as SLOs, error budgets, and chaos engineering. Therefore, I will introduce the SLO Basics session, which serves as the foundation for these topics. It covers very basic content, so it might be boring for those who have already read the SRE book or the SLO book, but it is always valuable to return to the basics.

Summary

Relationship Between SRE and SLO/SLI

Let's start by confirming the terminology.

  • SRE: Site Reliability Engineer
  • SLO: Service Level Objective
  • SLI: Service Level Indicator

Many people probably have the image that "SRE = someone who protects product reliability," but it is more than that.

One of the major responsibilities of an SRE is to bridge the gaps between various groups within the company (development, product, business, support, etc.).
SLO is positioned as a "tool to start a conversation" to bridge those gaps.

Observability and SLO

Observability is a concept particularly deeply related to SLOs.

Observability is:

The ability to understand the internal state of a system from externally observable outputs

This includes, for example, the following:

  • System statistics
  • Availability
  • Status of dependent services
  • Error counts

The goal as an SRE is, after preparing these measurement methods, to grasp the state of the product and be able to have meaningful conversations with various teams about where to focus efforts.

At the center of this lies the question:

Are we in a state where we can release new features without negatively impacting the user experience?

The framework to answer this is the SLO.

SLO, SLI, and a Little Math

SLI is used to measure SLOs.
SLI is an indicator that expresses "how well we are doing" in concrete numbers, and it involves a little bit of math.

The good thing about SLOs is that as long as you have the data for measurement, you can make them very general goals, or you can make them quite specific and localized goals.

And since an SLO is an internal goal, you can change it freely.

If you have set an unrealistic SLO, such as 99.99% availability, and are not achieving it at all, it is better to honestly review the SLO and start from a realistic point.

In the sense that it is easier to achieve results by stacking small goals, SLOs are the same as other goal-setting processes.

This is a major difference from SLAs, which are contracts with customers.
An SLA is a promise to the customer, but an SLO can be used as an internal tool independent of the customer for trial and error.

Concrete Example: 99.95% Completed Within 200ms

The session provides the following SLO as a concrete example:

99.95% of requests on a service will be completed in under 200ms

We need to add "over what period we evaluate that SLO."
For example, you can choose a period that is convenient for you, such as 1 day, 1 month, 4 months, or 1 year.

Here, choosing 1 month, we rewrite it as:

99.95% of requests on a service will be completed in under 200ms every month

At this time, we can calculate how much downtime (failure) is permissible per month.

  • If availability is 99.95%, the permissible failure rate is 1-.9995=.0005
  • If we assume an average month is 30.42 days:
    • .0005 * 30.42 * 24 * 60 = 21.9024
  • In other words, approximately 21.9 minutes of downtime is permissible per month

This 21.9 minutes is the error budget.

What Error Budget Means

Error budget can be thought of as the "amount of errors the service is allowed to consume" within a certain period before users notice and start complaining.

This is particularly useful for decision-making in situations such as:

  • Downtime has been continuing recently
  • The error budget has been significantly exceeded

In such situations, product teams and SRE teams must choose whether to continue releasing new features or to focus on reliability improvements and root cause investigations.
The error budget becomes an indicator for making those decisions based on data.

Customers always want both "a service that is always available" and "new features."
The ideal is to "continuously release new features without bugs," but reality is not that simple.

  • When there is enough error budget remaining, it is easy to give the green light to new features
  • When the error budget is exhausted, it serves as a signal that reliability improvements should be prioritized over releases

In some cases, it shows that we should invest more in pre-release QA, and management and executive support are needed to adjust that priority.
The strength lies in being able to use numbers like "SLO/Error Budget" instead of "gut feeling" at those times.

Why 100% Availability is Dangerous and Chaos Engineering

When talking to management, many engineers struggle to explain "why 100% availability is not realistic."
This is because they are often thought to be "aiming for 100% as well."

In reality, claiming 100% puts yourself in a corner.

  • Real computers and networks always break
  • Users might not even notice a cumulative 20 minutes of downtime

By preparing "a little room" as an error budget:

  • While maintaining engineer satisfaction and work-life balance
  • The margin to experiment with chaos engineering, which intentionally breaks the system, is also created

To conduct chaos engineering safely, you need a controlled, low-stress environment.
Error budgets can also play the role of creating that "play space."

For Those Who Want to Learn More

Finally, as a resource for those who want to learn more deeply, I introduce the book Implementing Service Level Objectives.

  • SLO concepts
  • How to choose good SLOs
  • How to convey them to get other teams to accept them

It is recommended for those who want to learn such things, but there is one chapter where the math is heavy, so you can skip that part.

Summary

Summarizing the points made in this session:

  • SREs have the role of not only protecting product reliability but also bridging gaps between various groups within the company
  • SLOs are "tools to start a conversation" for that purpose and should be thought of in conjunction with observability
  • SLOs are internal goals and can be changed to match reality. They are different from SLAs
  • Error budget is an indicator of "how much breaking is allowed" and can be used to balance new features and reliability improvements
  • 100% availability is not realistic, and the margin as an error budget leads to engineer health and chaos engineering

Comments on the Session as a Whole

I think this was a very useful session for understanding the basics, with very fundamental content packed into a compact format that is just right.
Proceeding with this advent calendar, in my translation of Keys to SRE in SRECon14, it was suggested to use SLOs instead of release checklists. This implies that each team releasing features should have its own SLOs. Following that, in my translation of SLO Math in SLOconf 2021, it proposed having SLOs at the service entrance, without being misled by Conway's Law. And in the previous translation of Unified Theory of SRE in SRECon22 Europe/Middle Asia/Africa, it went as far as suggesting that startups should stop chasing SLO numbers.

And now, returning to these basics, it seems that the advantage of SLOs is that, unlike SLAs, they should be flexible and changed into a form that is useful for the team. In other words, an SLO is likely correct when it reflects the shape of the challenges that the organization or service is currently facing.

Discussion