Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Margin Layer — Or, "It Passed" Is Not the Same as "It Was Nowhere Near Failing"

A nightly job finishes in 41 minutes against a 90-minute window. That is a pass. Two years later the same job finishes in 88 minutes against the same window. That is also a pass, reported the same way, on the same green tile, by the same dashboard. The job did not get worse, exactly. It grew: more tenants, more rows, one more index, a partition scheme that stopped being optimal at some point…

A nightly job typically concludes within 41 minutes, falling within the designated 90-minute window, which signifies a successful completion. However, this same job exhibited the same level of success two years later, completing in 88 minutes against the identical window, and was reported in the same manner to the same dashboard.

The job did not deteriorate; instead, it expanded, owing to an increased number of tenants, more rows, an additional index, and a partition scheme that became suboptimal. The absence was not in accuracy but rather in the margin – the gap between the system's performance and the point at which it collapses. The pass/fail system reduces a distribution into a single bit, which remains consistent whether the measurement is comfortably within the limit or one migration away from it.

The margin layer involves documenting this distance, as it is the sole figure that indicates the remaining capacity. The margin is the distance, measured in the units of the variable, rather than a percentage. For instance, "78% of capacity" can be misleading because the variable at play is not the capacity itself, but factors like arrival rate, payload size, tenant count, or retry storms.

A meaningful margin is expressed in the units of the variation – for example, "run time grows 3 minutes per month," not "54% utilized." Similarly, "invoices above 2.5 times the largest one we have" is a more accurate margin than "68% of the budget." The margin can also encompass rate limits, such as "one quarter" instead of "80%," and cost, like "one model version" rather than "60% of the budget."

A margin transforms a simple pass/fail binary into a more informative metric, revealing when you will approach a threshold that should be avoided. Three margins are typically tracked: headroom (capacity margin), tolerance (correctness margin), and freshness (evidence margin). Headroom indicates how much additional load the system can handle before performance degrades, tolerance represents the allowable error before the outcome becomes incorrect, and freshness reflects how long the validity of a result remains true.

Margins are often omitted from reports because they are not binary – an SLA is either met or not, and the focus tends to be on such binary questions. Optimization efforts often consume margins without explicit tracking, as improvements in one area may lead to reductions in another. Thus, margins should be recorded alongside the metric value, threshold, and spread (the variation), allowing for a clearer understanding of the system's true capacity and limitations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Linux nosymfollow blocks one symlink path, not every path problem

Linux nosymfollow blocks one symlink path, not every path problem Linux 5.10 added the MS_NOSYMFOLLOW mount flag. The option prevents symbolic links on a mount from being followed.

  • Linux 5.10 introduced MSNOSYMFOLLOW mount flag to block symlink paths.
  • Nosymfollow only changes path resolution on mounted filesystem, not entire system.
  • Best used as one layer in file-serving design, not path validation replacement.

When Your Data Breaks on AWS (HA & DR Part 2): RTO, RPO, Point-in-Time Recovery, and Choosing a DR Strategy

In Part 1 , we looked at what happens when a single bad write hits your database: how Aurora Backtrack can rewind it, how idempotency stops the same request from running twice, and why a restored…

  • Recovery Point Objective (RPO) defines maximum data loss tolerance
  • Recovery Time Objective (RTO) defines maximum acceptable downtime
  • DynamoDB PITR captures every change with per-second granularity

Your Prettiest Dashboard Is Lying to You (And Grafana Will Never Tell You)

Pull up a chair, grab a cup of chai, and let’s talk about the prettiest graph on your big screen. It might be completely empty.

  • Grafana dashboard shows empty graphs due to non-existent queries
  • Various reasons like metric renames or deleted rules cause silent failures
  • Manual audit and CI pipeline gate needed to prevent broken dashboards

More from Monday 9 November →