All notes

Error Budgets Should Change Release Decisions

Define reliability around completed user tasks and make the response to budget burn explicit.

English edition, edited for length. Read the complete Chinese original.

The server availability is very good, but users frequently have to wait an hour for their reports to be processed. The fact that the infrastructure is not experiencing downtime does not guarantee that users’ goals are being met. Service reliability should be defined by user actions: whether the reports are completed within the agreed timeframe, rather than whether the process is still running.

The error budget transforms this goal into a manageable resource. It doesn’t allow teams to arbitrarily introduce failures; instead, it acknowledges that achieving absolute zero failures is often unrealistic and balances new features, change risks, and stability efforts with clear rules.

First, determine the denominator for the success event.

Assuming that reports should be downloadable within ten minutes after creation, the success metric is the proportion of valid report requests that meet this deadline. It’s important to clarify whether user-cancelled requests, repeated submissions, or invalid parameters are included in the denominator. We should not temporarily exclude failed requests after an error occurs to make the metric appear better.

The timer should start when the request is accepted, not when the background task begins. Otherwise, queue delays will be missed, and the metrics will be disconnected from the user experience. Completion of the report should also mean that the file can be truly downloaded, not just that the database status is marked as complete.

If there are significant differences in the time required for different report types, it’s possible to establish metrics in a layered approach. However, it’s important to avoid breaking down each situation into independent goals, as this could ultimately lead to a situation where no one understands the overall commitment. The categorization should reflect genuine user needs, rather than being artificially divided for the sake of easy achievement.

The report ID provides a stable business identity, and the acceptance time and availability time form a period judgment. Tasks that are not completed within the deadline are counted as “not met,” and subsequent completion can be recorded to restore the original window, but does not rewrite the original facts. The handling of cancellations, invalid requests, and repeated attempts is defined in the policy and is not selected based on the results at the end of the month. Metrics can be generated from persistent state or complete events; sampling logs cannot directly serve as the denominator.

If different report types genuinely have different user commitments, it’s possible to establish limited categories of SLOs and observe the overall performance. A report running successfully for a reasonable period doesn’t necessarily mean all timeouts can be excluded; the category is determined when the request is accepted, and it shouldn’t be renamed after a failure. To download the results, the file must exist, have the correct permissions, and contain complete content; simply exiting the background function is not sufficient. User goals and the definition of successful monitoring must be consistent, otherwise the budget will be meaningless.

It’s important to distinguish between measurement failures and business failures. Loss of timestamps or downtime of the data collection system can make metrics unreliable, and it’s not appropriate to automatically assume that everything is successful. Maintaining indicators of measurement health and data gaps is crucial, as major decisions require sufficient evidence. Transparency about uncertainty is more accurate than filling in missing data with zeros.

Target figures should be based on

For example, the team discussed that 99.5% of requests should be fulfilled within one month, which is a target for reference, not a universal recommendation. When choosing a target, factors to consider include user tolerance, historical performance, dependency constraints, and the cost of improvement. Setting a target that is significantly higher than the current performance without a corresponding investment plan will simply result in a permanent red flag.

Taking a thousand successful requests as an example, this illustrative target allows for five failures that do not meet the deadline. In low-traffic services, even a small number of failures can significantly alter the proportion, so it is important to combine absolute numbers with impact analysis. You cannot simply apply the alerting rules used in high-traffic services.

The time window also influences behavior. A scrolling window is suitable for continuous observation, while a calendar window is convenient for reviewing fixed periods. Regardless of which option is chosen, the policy must be consistent with the same window, and indicators should not be used arbitrarily, while budget decisions can be explained on any given day.

Early Warning Based on Consumption Rate vs. Remaining Proportion

With half of the monthly budget remaining, it’s clear that waiting until the end of the month to process a large usage spike is too late. By comparing the current rate of budget consumption with the allowed rate, we can see how quickly the system is depleting the budget.

Short-window detection quickly identifies transient faults, while long-window confirmation confirms persistent issues. Combining the two can reduce false alarms caused by momentary fluctuations. The specific window size and threshold values should be determined through historical data playback, ensuring that both genuine faults are detected promptly and that frequent false alarms are avoided.

Similarly, metrics related to delays also apply, but it’s crucial to accurately record the completion deadlines. Tasks that haven’t been completed shouldn’t simply disappear from the denominator. When deadlines are missed, they should be counted as “unsatisfactory.” Otherwise, the more tasks are piled up, the more artificially inflated the success rate will appear.

If the allowed failure rate is 0.5%, and a specific window actually experiences 5%, the consumption rate is ten times the allowed level. This ratio doesn’t indicate how much of the budget has been spent; the remaining budget still depends on the total traffic and historical data of the window. The impact of a high-traffic failure for one hour is different from that of a low-traffic failure for one hour. Observing the ratio and the number of events helps to avoid a single, precise number masking a small sample size.

Short-window combinations are used to distinguish between rapid spikes and sustained degradation. Thresholds are selected through historical replay and simulation. The rules cannot be directly copied to any service. Low-traffic sites may require a single, severe failure notification, while full proportion targets are used for review. Independent alerts are also triggered for critical data errors. SLO is a tool from the user reliability perspective, not a universal currency for all risks.

For delayed targets, clearly define success events based on whether deadlines are met, or use appropriate distribution queries. A low average completion time may mask long-tail persistent failures, and percentiles may be unstable with low sample sizes. The team should choose the appropriate statistical method and clearly state its limitations, so they know when the data is sufficient to support a pause.

It’s essential to have a written publishing policy

When monitoring the budget, it’s important to consider the time window. While the long-term ratio is still healthy, there may be a rapid consumption in the short term, which may require immediate investigation. Occasional, minor errors in the short term do not necessarily warrant a complete shutdown.

Using strategies that correspond to the specific window and burn rate, record the threshold based on noise levels, and avoid making a blanket decision based on a single day’s percentage.

The process for approving exceptions, the required evidence, and the review schedule should be established before the incident occurs. If decisions are made on a case-by-case basis by the most powerful individuals, a genuine team agreement will not be formed.

Policies should not penalize individuals who report problems. If a failure results in a team permanently taking responsibility, there may be an incentive to adjust metrics or hide failures. Budgets should be used to promote collaborative system repair, rather than as a shortcut to penalize poor performance.

When the budget is exhausted, temporarily suspending non-essential, high-risk changes does not mean prohibiting fixes for bugs, security vulnerabilities, or capacity issues. However, exceptions are made for planned improvements, risk mitigation, validation, and rollback procedures. Approvers have a clear responsibility to review and finalize these after completion. If a fix may introduce short-term risks, it should be implemented with careful consideration of user impact, using a phased rollout and monitoring approach. Users should not automatically gain unlimited permissions simply by labeling a change as a “fix.”

The risks associated with publishing are not limited to frequency. Unlike a low-risk content adjustment and database migration, policies can be tiered for verification rather than a full-site freeze. An error budget provides a constraint on reliability, and security and legal requirements remain independently prioritized. A single privacy breach cannot be considered a failure of the budget if the report is completed on time. Defining boundaries prevents any single metric from dominating all engineering decisions.

Historical goals can be adjusted, but they must be accompanied by a valid reason and future implementation rules. Changes that fail to meet these criteria should not be retroactively applied. Long-term goals that are unrealistic may require changes to investment, architecture, or product strategy. Discussions should be transparent. Temporarily lowering goals to make a chart turn green does not solve user problems and also undermines the team’s trust in the metrics.

Budget Connection Project Investment

The review process should categorize requests that fail to meet the criteria based on their underlying causes: queue backlog, vendor timeouts, deployment defects, or input errors. Subsequently, prioritize the solution that minimizes user impact the most, rather than simply scaling up resources. A non-idempotent defect can cause tasks to hang indefinitely, potentially rendering the machine completely unusable.

The reliability project also requires validation. When comparing before and after, ensure that the same metric is compared with similar traffic, and confirm that the error budget consumption has decreased. You cannot simply declare that reliability has improved based solely on the increase in retry attempts; retry attempts may increase the load on downstream systems and user waiting times.

Error budgets are not the only decision-making factor. Even a low-probability data breach, even if it doesn’t affect availability, may still require a system to be taken offline. Security, data integrity, and legal obligations require independent constraints that cannot be overridden by a single success rate number.

After the queue concurrency increased, reports showed faster execution times, but the vendor also implemented more frequent rate limiting. We should not only celebrate the temporary decrease in execution time. Idempotent recovery reduces permanent stalls and may be a more direct solution than scaling up. Categorize the reasons for the slowdown and relate them to budget consumption. Estimate which type of work has the greatest impact, and then validate this through similar conditions and online observations. The numbers are based on real measurements and do not include fabricated percentages to prove the effectiveness of the solution.

Error budgeting also helps to plan preventative measures. A sufficient current budget does not necessarily mean that all risks have disappeared; the review highlights recurring failures and weak recovery points, and preserves improvement plans. When the budget is insufficient, prioritize specific tasks that can be completed to meet commitments, rather than adding more dashboards. Team agreements, measurement quality, and engineering actions form a closed loop; charts are simply information carriers.

Separate Assessment of Low Traffic and Severe, Isolated Incidents

The following are easily achievable goals, with a thousand requests being a reasonable target. Individual sites may only receive a small number of requests per day. A single failure can significantly alter the ratio, and a long window may also lead to delayed responses. It’s important to monitor both absolute failures, affected tasks, and user feedback, while maintaining a clear denominator for reliability goals. Don’t exclude all requests simply to achieve low traffic, and don’t simply copy the multi-window thresholds of large-scale services and claim they are applicable.

Data loss, incorrect charges, and privacy breaches can occur only once, and their severity and impact are not proportional. Security and integrity rules can be suspended and addressed as independent controls, even if the budget remains adequate. This allows for limited non-compliance within the defined service objectives, as long as it does not violate other obligations. This boundary prevents teams from rationalizing unacceptable risks with a single metric.

The policy needs to clearly define who takes action. Upon receiving an alert, the on-call team should immediately consult the operating manual and the designated decision-maker should determine whether to scale down or pause the change. Any approvals should be documented, and the team should review and adjust the resources accordingly. Not every alert requires a meeting, and the budget does not automatically dictate all actions. The tools provide signals, and the protocol reduces on-the-spot arguments, allowing the responsible person to make informed decisions.

Regarding the validation conditions for restoring settings: A new request can only be restored to the target range, after the old backlog has been processed and the degraded state has been exited. The waiting window should be determined based on the service and traffic. After restoration, continue to perform post-analysis and take action, without treating budget resets as a solved problem. Reliability learning occurs between the cause and the result, not just at the end of the month.

Finally, use real historical or synthetic, explainable data to replay policies and compare notification times with their impact on users. Non-operational thresholds are adjusted to actionable conditions, and the long-term goal of always being red is re-evaluated in terms of cost and commitment. SLOs require ongoing maintenance by measurement, team policies, and engineering investment. The error budget simply puts these trade-offs into a transparent framework.

Manually Verify Budget Requests from a Small Group

Imagine a service that receives 1,000 valid reports within a fixed window. Of these, 992 are completed on time and downloadable, 5 are completed after the deadline, and 3 remain incomplete and have exceeded the deadline. The successful count is 992, not 997. While late-arriving reports can reduce the current backlog, they cannot retroactively re-classify reports that were initially missed. The rules for determining whether reports received within the window or those that arrived after the deadline should be clearly defined and consistently applied in the calculation.

If the target is 99.5%, then allowing for 5 instances of under-achievement, the actual number exceeding the limit is 8, with 3 remaining. This calculation is based on the number of requests, not the number of minutes of downtime. The impact of a 5-minute outage depends on how many effective actions are affected during that time. A maintenance window with no traffic does not necessarily equate to a peak incident. Both models can be used independently, but the event budget and time budget should not be arbitrarily interchanged.

Additionally, include two duplicate submissions. If these are idempotent re-submissions with the same intent, only count the user action once; if the system creates an independent report, it must determine whether it represents a new valid request according to the product agreement. The statistical layer should not use the same title to deduplicate temporarily, otherwise the actual two business requests may be hidden. The stable identity and request semantics should come from the application protocol, and monitoring queries should only execute explicitly defined rules.

Old failures within the scrolling window will naturally move out of scope, leading to improved budgets. However, this doesn’t fix the underlying problem. Policies should simultaneously require current consumption, backlog, and root causes to be controlled, preventing teams from continuing high-risk changes while waiting for historical failures to expire automatically. Rolling statistics are responsible for describing a period of time, while incident recovery is responsible for explaining what is currently happening. Together, they support decision-making.

Converting Burning Rate into Explainable Impacts

Let the failure rate be denoted as e, and the actual failure rate observed in the observation window be denoted as f. The burn rate is then f/e. Assuming e is 0.5% and f is 5%, this results in a burn rate of 10 times. This value can be roughly interpreted as indicating that a window budget will be depleted more quickly if the request rate remains approximately constant. However, it is important to note that real traffic fluctuates constantly, and failures tend to affect a specific type of user. Therefore, the calculated hours should not be considered as an exact countdown.

Multi-window rules typically require that both short and long windows meet certain conditions simultaneously: the short window problem persists, and the long window demonstrates that it is not a one-off event. They correspond to the same user goal, and should not be measured using different metrics: one based on request acceptance time and the other based on execution completion time. Otherwise, the two numbers will appear to confirm each other, but in reality, they measure different populations.

The low-sample window also requires a clear definition of the minimum evidence or independent event alert. It is not sufficient to simply set a minimum number of requests and then ignore all failures below that threshold. For small services, users can independently trigger investigations based on clear feedback signals such as “download unavailable,” “continuous synthesis detection failures,” or “task exceeding deadline.” This allows for a more proportional budget to be allocated to longer-term releases. Each signal should also indicate whether it belongs to complete business statistics to avoid mixing detection traffic into the true user denominator.

The historical replay should cover known incidents, as well as normal weekend and low-traffic periods, and routine maintenance. It should record when the rules were triggered, the evidence available at the time, and what actions the maintainer could take. It should not be possible to prove that noise is acceptable based on a single major incident; nor should a reduction in the number of notifications prove that underreporting has not increased. Adjusting the rules involves a trade-off between two costs, and it is necessary to retain the rationale for the decision.

Pausing the release should not mean freezing all recovery actions.

Assuming the primary reason for budget exhaustion is slow queries caused by database migration, the proposed changes are:

  • Introducing new features (which can be delayed if necessary)
  • Enabling/disabling features to reduce the number of affected requests
  • Fixing the index

The value of these changes lies in having a consistent rationale for each decision.

An exception form can only contain a few essential facts: the current impact, how to mitigate the impact, the reason for not waiting, verification and stopping criteria, the approver, and the review time. Avoid requiring a lengthy document to handle an ongoing incident, and avoid skipping all records simply because it is an emergency. After the fact, compare the actual results with the expected results, and adjust the plan if the results are not achieved. Do not consider approval as a definitive success.

The recovery process can be implemented using a phased approach. Initially, allow for minor fixes and limited validation, followed by low-risk changes, and finally, the standard release. The observation window should align with traffic and task durations. If a report completion requires ten minutes, a brief health check is insufficient to confirm full end-to-end recovery. Old tasks also need to be tracked separately; it’s not sufficient to simply announce the end of all user impact after observing new requests.

Reliability projects should focus on failure modes, not just overall numbers.

All eight failures could potentially originate from the same vendor, or from eight distinct defects. The former scenario is suitable for implementing isolation and rollback strategies, while the latter requires improvements to verification and release processes. Analysis should be conducted based on the cause, user type, and task stage, while maintaining a limited classification scheme and avoiding the introduction of individual SLOs for each user. For failures that cannot be classified, ongoing investigation is necessary, and they should not be indefinitely categorized as “unknown” after the initial classification effort.

Budgetary costs also exist within the organization. When multiple teams share a single user action, it’s not possible to arbitrarily assign the failure to any individual service. Instead, responsibility must be restored through internal transfers. User goals are jointly owned, and service-level goals can serve as a diagnostic and collaborative agreement. Clearly defining shared responsibility is more accurate than attributing all failures to a single, final error-prone module.

A release review can directly reference the current target, the number of valid actions within the window, the reasons for unmet targets, and the risks associated with the proposed changes, without needing to copy the entire monitoring wall. If measurement data is incomplete, clearly state the uncertainty and take a conservative approach to verification, rather than defaulting to approval based on missing data. To avoid discussions about reliability turning into arguments about chart colors, the budget calculation should be reproducible, and the rationale for the policy should be traceable.

Regarding changes to product commitments, such as shifting from instant generation to next-day delivery, it’s crucial to first ensure that users receive accurate information. Then, establish clear goals for the new business model. Simply changing the monitoring period without altering the product description only hides the breach. Existing requests should continue to be handled according to the original agreement, while new requests should be processed under the new version of the agreement, maintaining the handover rules to prevent the same task from being interpreted arbitrarily across different reports.

Desktop Simulation Calibration

Prepare three case studies: continuous slow tasks, short-lived complete failures, and single, high-impact failures with low traffic. Simulate metrics and alerts. Allow the team to determine the priority for release, rollback, and fix based on existing policies. If the team reaches conflicting conclusions, the policies are not clear enough.

The final acceptance isn’t about the dashboard turning green; it’s about the team being able to explain: what the current user commitments are, how the budget is being spent, and why the next release can or cannot proceed.

References