MenuReliability

How RoundBeat stays up

On this page

This page explains how RoundBeat keeps running through deploys, recovers when a part of it fails, keeps its data complete and gets every alert out. It covers what we guarantee, how we keep and check each guarantee, and what is still being built. Measured numbers say when and where we measured them.

At a glance

What RoundBeat guarantees
GuaranteeHowHow we check it
No downtime when we deploy the app and the APITwo copies of each; a new copy is ready before an old one stops, and the old one finishes its requests first.0 failed requests out of 1,362 during restarts in our test environment (details).
Processing and alerting resume where they stoppedOnly one copy works at a time, and it saves its place after every epoch and every alert.Handover gaps under 1 second in our test environment.
Every epoch is accounted forA record per epoch and per kind of data: done, empty, owed or not recoverable. Owed epochs are fetched again until they are done.The team is alerted when an epoch of the last 24 hours is still owed after 2 hours.
Every alert is sent onceEach send to each destination is recorded. After a restart nothing already sent is sent again, and failed sends are retried.Every attempt shows in delivery history.
The data is checked all the timeAn independent checker compares the stored data with itself, with the public pages and with the chain.Fast checks every epoch, full checks every hour, the whole history every day.

Deploys without downtime

The app and the API

  • The app and the API each run as two copies on separate machines.
  • A deploy starts a new copy and waits until it is ready before it stops an old one.
  • A copy that is told to stop takes no new requests, keeps serving for 5 seconds while traffic moves away from it, and finishes the requests it already has before it exits.
  • Maintenance on a machine takes at most one copy of each down at a time.

Measured on 7 November 2026 in our test environment, one request every 0.2 seconds while the app and the API restarted: 0 of 675 and 0 of 687 requests failed in two runs. Before this work the same test failed 8 of 861.

Processing and alerting

Exactly one copy of the processing service, and one of the alerting service, does the work at any time: the one that holds a lease in the database. That is what keeps an epoch from being written twice and an alert from being sent twice, even while two copies are running.

  • On a deploy the new copy starts beside the old one, gets ready and waits, trying to take over every half a second.
  • The old copy finishes the epoch it is working on, or sends the alerts it is holding and saves its place, then hands over.
  • The new copy carries on from that saved place.

Measured in our test environment in November 2026: handover gaps from 0.06 to 0.96 seconds, with the old copy handing over cleanly every time.

When something fails

A part of RoundBeat crashes

  • The app or the API: the other copy keeps serving, and the crashed one is restarted.
  • Processing: a second copy is already running and takes over, within a minute if the first one fails without warning (measured in our test environment, November 2026). It carries on from the last epoch saved. The epoch that was in progress is processed again, and processing an epoch again never stores anything twice.
  • Alerting: a second copy takes over the same way and reads on from the saved place. An alert already sent to a destination is not sent to it again; an alert that was decided but not yet sent is sent once.
  • The working copy renews its lease every 5 seconds. A lease lasts 30 seconds, and a copy that has gone 15 seconds without renewing it stops all work, before its lease can run out, so a copy that froze or lost its connection never writes beside the one that replaced it.

A machine fails

  • The app and the API keep running on the other machine.
  • Processing and alerting carry on from their saved place on the other machine, where a second copy is already running.

The database fails

The database runs as two copies on separate machines. If the main copy fails, the second one takes over on its own. Processing and alerting reconnect and carry on from what the database holds; any epoch after that is processed again. The database is backed up continuously, with a full backup every day.

A source of chain data fails

RoundBeat reads the chain from a main source and keeps a second one ready. The main source is checked every 12 seconds. After three failed checks in a row (no answer, or more than 8 slots behind the chain), processing switches to the second source, and it switches back after three good checks in a row. Anything the second source cannot settle stays owed and is finished once the main source answers again, so a switch never turns a missing answer into a recorded miss.

RoundBeat falls behind

Every page shows a Chain data delayed banner, and the RoundBeat team is alerted when processing has not moved for 15 minutes (checked every epoch) or when the repair job has stopped. Once processing catches up it works through the epochs it missed in order; nothing is skipped while the data is still available.

Every epoch is accounted for

  • For every epoch and every kind of data (blocks, missed proposals, relay deliveries, attestations, sync committee participation, validator state), RoundBeat records whether it is done, empty, owed or not recoverable.
  • Its saved place never moves past an epoch whose record was not written, and every 5 minutes it looks for epochs nobody accounted for and marks them owed.
  • A repair job fetches owed epochs again, newest first, retrying from 5 minutes up to every 6 hours. It waits while live processing catches up, so live data comes first.
  • An epoch is marked not recoverable only after every source said, three times in a row, that it does not hold the data. A refused or failed request never counts.
  • Data that belongs together is saved together: a validator’s new status with its exit or slashing event, a new validator with the epochs it still has to be scored for, an on-chain event with its alerts. A crash can never leave half of it.
  • Back-fills add what earlier versions missed, for example blocks of validators that were tracked late, attestation scores, relay deliveries and on-chain event history. Each adds only what is missing.

Pages mark data that is incomplete (partial data).

Every alert is sent once

  • Every send to every destination is recorded in delivery history. After a restart the alerting service reads on from its saved place and skips any destination that already has the alert.
  • Alerts held for grouping when the service stops are sent before it hands over.
  • A failed send is retried, up to 8 attempts over about an hour. If the last one fails, history says so, with the error.
  • On-chain event alerts are stored with the event, so a restart never loses one.
  • One organization’s slow destinations do not hold up anyone else’s alerts: deliveries run on 4 workers, one organization each at a time, and each organization gets 60 seconds per round before its remaining sends move to the retry queue.

How the data is checked

A separate checker, which only reads, runs beside RoundBeat and alerts the team when a check fails or when it stops running:

  • Every epoch: fast checks that the data is still moving and that no module’s attestation rate has collapsed.
  • Every hour: rules that the stored data must never break, rules that the public pages must agree with each other and with public chain data, and a check of the last day against the chain: every block, every relay delivery, every validator scored.
  • Every day: the same completeness checks over the whole history.

A release reaches production only after it has run in our test environment, the checks have found nothing new on it, and processing and alerting have handed over cleanly there.

On 8 November 2026 every check of the last day’s chain data passed in production. The daily check of the whole history still finds older gaps, which the back-fills are filling.

What is still being built

  • An alert checker that compares every alert with the chain, before and after it goes out.
  • Email alerts (not available yet).

Written for RoundBeat 1.124. Facts checked against the app source on 20 Nov 2026.