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.
| Service | Before | After |
|---|---|---|
| Sites | Unknown | Operational |
| Servers | Operational | Operational |
| Networking | Operational | Operational |
| Object Storage | Unknown | Operational |
| Dashboard and API | Unknown | Operational |
| Server actions | Unknown | Operational |
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:
| Service | What it reads | Why it was Unknown |
|---|---|---|
| Sites | Uptime pings that each Pilot sends | No Pilot sent telemetry. The Pilots were old, and Central had no Datum address to give them. |
| Object Storage | S3 requests that Garage counts | Staging has almost no S3 traffic, so most 3-minute windows had no request. |
| Dashboard and API | Request counts that Central sends | Central could not reach Datum. |
| Server actions | Server actions that finished in the last hour | Central 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.
- Tenant VMs could not reach the mesh name. A request from a Pilot VM to the internal name got no answer. Atlas lets a tenant VM reach a platform VM only when the platform VM is privileged. The Datum host VM and the S3 gateway VM were not. Both are now privileged, and the same request answers 200.
- Central is not on the mesh. Central runs outside the region, so the internal name never works for it. Central #725 makes Central send its own telemetry to
https://telemetry-svc.<region domain>. It still sends nothing while the telemetry host does not report itself Available. Pilots keep the internal address. - The Cargo webhooks had an old secret. Cargo copies the Central webhook secret into its webhooks only when it sets them up. After Cargo was enrolled with the staging Central again, the two webhooks were rebuilt, and Central recorded the telemetry and storage services.
What changed
Code (pull requests)
| Pull request | Change | State |
|---|---|---|
| Central #725 | Central sends its telemetry to the public Datum name. Tests for the address and for the Available check. | Applied on staging |
| Central #726 | A 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 #144 | A 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 #145 | The 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 #1 | The 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
| Area | What was done |
|---|---|
| Pilots | Started 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. |
| Hosts | Unmounted a leftover read-only diagnostic mount. Ran the two failed GRUB units again; both pass. |
| Cargo | Terminated 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. |
| Central | Closed nine old test actions that had no region. They raised an error each minute. |
| Server actions | Made 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. |
| Silences | Silenced, 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.
| Step | What Beacon did | Result |
|---|---|---|
| Pilot stops sending | pilot-silent went Pending after 10 minutes, then Firing after 5 more | OK |
| Incident | Beacon opened an internal incident. The chat logger received "New incident" | OK |
| Acknowledge and update | Status changed to Investigating. The internal update stayed internal | OK |
| Publish | The status page showed the incident and Sites as Degraded at once. The guest method for an internal incident answered "not found" | OK |
| Pilot sends again | The alert resolved. Beacon did not close the public incident, and the chat said a person must resolve it | OK |
| Resolve | The public resolve message reached chat, the status page, and the history | OK |
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
- Object storage backup. The staging cluster has no offsite bucket for its metadata backups, so the backup alert is correct. It needs bucket credentials from the team. Production needs the same setting.
- Merge and revert. After Cargo #144 merges, set the staging Cargo definition source back to
develop. After Beacon #1 merges, deploy Beacon on staging; the bench has the patch in place now. - Temporary test parts. The chat webhook points to a temporary tunnel. Replace it with a real channel, and add responders.
- Admin API key. The probe timer uses a new API secret of the staging Central administrator. Any old use of that key stops working.
Checklist for production
- 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. - Deploy Central #725. Check that Datum has
central_requestssamples from Central. - After Enroll Cargo, rebuild the two Cargo webhooks and send each once. Check that the request log says "recorded".
- Update the Pilots and run
pilot setup telemetry. Checkpilot_infoandpilot_sitesin Datum. - Merge Central #726, Cargo #144, Cargo #145 and Beacon #1 before go-live.
- Set an offsite metadata backup bucket on the object storage cluster.