Beacon on staging: from Unknown to a tested alert path

Report of the night of 14 to 15 November 2026. Beacon is the incident manager, SLO panel and status page of Frappe Cloud V2. It reads telemetry from Datum, the regional ClickHouse store. This note records why the staging status page showed Unknown, what changed, how the full alert path was tested, and what is still open.

Central #725Cargo #144Cargo #145Central #726Beacon #1

Result

At 00:40 UTC on 15 November the staging status page said "All systems operational". All six services had measured data and were Operational. A failure was made on purpose and followed through every step, from the Pilot to the status page, and each step worked. No alert fires without a silence, and each silence has a written reason and an expiry.

ServiceBeforeAfter
SitesUnknownOperational
ServersOperationalOperational
NetworkingOperationalOperational
Object StorageUnknownOperational
Dashboard and APIUnknownOperational
Server actionsUnknownOperational

The starting point

A Beacon service has a status only when its query finds valid events. When a query finds none, the status is Unknown. This is on purpose: grey "Status unavailable" is more honest than an old green.

At the start, four of six services on staging were Unknown. Each one had a different cause:

ServiceWhat it readsWhy it was Unknown
SitesUptime pings that each Pilot sendsNo Pilot sent telemetry. The Pilots were old, and Central had no Datum address to give them.
Object StorageS3 requests that Garage countsStaging has almost no S3 traffic, so most 3-minute windows had no request.
Dashboard and APIRequest counts that Central sendsCentral could not reach Datum.
Server actionsServer actions that finished in the last hourCentral could not reach Datum, and staging has few actions.

Who can reach Datum

The telemetry host reports one address to Central: an internal- name on the WireGuard mesh. Central gives that address to each Pilot. Two problems were in this path.

Pilot (tenant VM) Central (outside) Datum host VM public telemetryname (TLS) http://internal-telemetry-svcmesh: works only when the host VM is privileged https://telemetry-svcCentral #725
Pilots use the mesh. Central is not on the mesh, so it uses the public name of the same Datum.

What changed

Code (pull requests)

Pull requestChangeState
Central #725Central sends its telemetry to the public Datum name. Tests for the address and for the Available check.Applied on staging
Central #726A new Pilot gets the Datum endpoint at boot, but no token. It fetches the token from Central after Atlas creates the VM, so the token names the Atlas VM.Ready
Cargo #144A new HTTP rule sends an unsigned S3 request each minute and expects 403. It checks the S3 path that customers use. Garage counts the request, so Object Storage has valid events on a quiet region.Staging reads its branch until merge
Cargo #145The stale-image rule checks Base and Site images only. Cargo builds an Apps image only when the app makes a release, so an old Apps image is normal.Ready
Beacon #1The held-removal limit counts only resources that a list terminates or leaves out. A sleeping VM is Suspended, which is not a removal.Patched in place on staging

Staging operations

AreaWhat was done
PilotsStarted the stopped Pilot VMs, updated Pilot to v0.0.101, and fetched each telemetry credential from Central. Seven Pilots now send telemetry. One VM had a clock 13 days behind, so TLS to Central failed. Six old test VMs that could not be repaired went back to stopped.
HostsUnmounted a leftover read-only diagnostic mount. Ran the two failed GRUB units again; both pass.
CargoTerminated two builder VMs of 8 GB each that stayed after their images were retired. They came from an older version; the current code releases a builder after each build. The busiest host went from 1.3 GB to 8.3 GB of free memory.
CentralClosed nine old test actions that had no region. They raised an error each minute.
Server actionsMade one small probe server. A timer restarts it through the Central API every 20 minutes, so the Server actions service always has an event in its 1-hour window.
SilencesSilenced, each with a reason and an expiry: the Apps-image keys until Cargo #145 merges, an old test billing run, and the object storage backup (see open items).

Testing the alert path

A chat webhook can show whether Beacon sends notifications, but only if someone receives them. A small local request logger was put behind a temporary tunnel and set as the Beacon chat webhook. Then one real failure was made on purpose: the Pilot monitor on a VM with no sites was stopped.

StepWhat Beacon didResult
Pilot stops sendingpilot-silent went Pending after 10 minutes, then Firing after 5 moreOK
IncidentBeacon opened an internal incident. The chat logger received "New incident"OK
Acknowledge and updateStatus changed to Investigating. The internal update stayed internalOK
PublishThe status page showed the incident and Sites as Degraded at once. The guest method for an internal incident answered "not found"OK
Pilot sends againThe alert resolved. Beacon did not close the public incident, and the chat said a person must resolve itOK
ResolveThe public resolve message reached chat, the status page, and the historyOK

A bug the test found

The first time the alert fired, Beacon muted it. The reason was "held removal". Small staging Pilot VMs sleep after 10 idle minutes, and Atlas then lists them as Suspended. Four VMs fell asleep in the same minute that two builders were terminated. That was 6 of 41 resources, more than the 10% limit, so Beacon held the whole change for an admin. A held resource mutes its alerts.

The limit is there to stop a broken resource list from removing everything. A Suspended VM is not a removal: the source reports it on purpose, and the VM comes back. Beacon #1 counts only terminations and missing resources. Without it, every group of sleeping trial servers in production would mute real alerts.

A second bug: the wrong name on a new server

The probe server sent its site samples, but Beacon dropped them. Datum had them under the Central name of the server, not the Atlas name of its VM. Central builds the boot settings of a new server before Atlas creates the VM, so the first Datum token could only name the Central server. Beacon matches telemetry by the Atlas name, and the first token lasts 7 days. Central #726 gives the endpoint at boot and lets Pilot fetch the token later. Pilot already treats a missing token as one to fetch.

Open items

Checklist for production

  1. Make the Datum host VM and the S3 gateway VM privileged. From one tenant VM, check that the internal telemetry name answers 200 on /health.
  2. Deploy Central #725. Check that Datum has central_requests samples from Central.
  3. After Enroll Cargo, rebuild the two Cargo webhooks and send each once. Check that the request log says "recorded".
  4. Update the Pilots and run pilot setup telemetry. Check pilot_info and pilot_sites in Datum.
  5. Merge Central #726, Cargo #144, Cargo #145 and Beacon #1 before go-live.
  6. Set an offsite metadata backup bucket on the object storage cluster.