Skip to content

chore(infra): the SLO's uptime record lives only on the status page's own server #328

Open

Description

@aRustyDev

Context

#42 makes the availability SLO (99.5 % over a rolling 30 days, SPEC §6.4) a number read from status.woven: the Gatus uptime of the Thrust deep probe, GET /api/v1/endpoints/<key>/uptimes/30d. Gatus keeps that history in SQLite on the status page's own VM (storage in shared/aws/status-page/files/gatus.yaml, /data/gatus.db), and the same VM runs the prober. The infra repository's status-page doc already says that replacing the instance loses the uptime history (docs/src/status-page.md: the AMI is pinned, and bumps are deliberate maintenance).

Problem

Thrust's uptime record lives only on the status page's own server, so a rebuild of that server erases it and the server's own glitches count as Thrust outages.

  • A rebuild erases the record. An AMI bump, an instance replacement or a lost disk empties the 30-day window. The SLO figure then has no history, and the M2 exit criterion "four weeks inside the SLO" (PLAN.md) cannot be read, or silently restarts from zero. Nothing else holds a copy.
  • The prober's own faults count against Thrust. Gatus counts every failed result in the uptime figure, whatever the cause. The status VM suspending, a WARP wedge, an egress failure or a Gatus restart all turn the probe red while the product is up. The page can tell these apart (the Control group, explained in the header of gatus.yaml), but the uptime figure does not use that, so the SLO number is only as reliable as the probe path to it.
  • Both directions mislead the exit trigger in ADR-0094 (two breaches of the monthly budget in a quarter, or an EKS upgrade that needs more than the budget moves the database): a rebuild can hide breaches, and a prober fault can fabricate one.

Why it was accepted

#42 takes the probe as the single SLO source on purpose (Q-0094.4: measured end to end, no maintenance window excluded). Gatus uptime is the cheapest source that exists, and 30 days of data does not exist yet. This issue is the cost of that choice, written down.

Candidate ways to pay it back (not decided)

  • Keep the history off the instance: a periodic export or backup of the SQLite file, or a volume that outlives the VM.
  • Cross-check the figure: a second prober elsewhere, or push results from another place through Gatus external-endpoints (reserved, commented out in gatus.yaml).
  • Read the figure with the prober's own health taken out: discount windows in which the Control group was red.
  • Record the 30-day figure at fixed dates (for example at each month end) in the repository, so a lost history costs one month, not the whole record.

The fix is mostly in the infrastructure repository (status page); this issue tracks the Thrust-side cost, and an infra issue can be filed from it once the owner picks a direction.

Done when

  • A rebuild or restore drill of the status VM shows that the SLO figure survives it (or the loss is bounded and written down).
  • A prober-side outage either does not count against the figure or is flagged beside it, and the choice is written in SPEC §6.4.
  • The exit-trigger text in ADR-0094 says how the figure is read when either case occurs.

References

Activity

  1. added
    area:infra
    type:debt
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:infratype:debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions