One small server, by design

The whole platform runs on one modest, burstable cloud server: the paper and demo engines, the database, the API, the dashboard and the research jobs. That is a design constraint, not an accident of budget. No heavy numerical libraries in the core, a bounded amount of work per bar, and no new process that runs all the time unless it argues for itself.

There are no containers. Every part is a plain systemd service, and every service that runs all the time carries its own limits in its unit file. The backtest worker runs at low priority and with a memory ceiling, so a long backtest yields to the engine and is never what the system kills first when memory runs out. The CI runner is held to one processor and runs as its own user, with no secrets and no administrator rights. The only privileged thing it may do is start the deploy.

Caddy handles HTTPS in front of the API and the dashboard. The API runs as a single process on purpose: the alert dispatcher keeps its place in the event log in memory, and a second process would send every alert twice.

From a push to a running engine

The platform’s tests and its deploy run on the server’s own runner, since the hosted CI minutes ran out. A change that touches only prose runs no CI and deploys nothing. Anything else runs the full checks, then deploys.

  1. Push to main A prose-only change stops here.
  2. Checks on the server's own runner Lint, format, strict typing, layering contracts, the full test suite, and the dashboard's own tests.
  3. Deploy Installs the commit and records it as the running version.
  4. Restart what changed The engine restarts only when engine code changed, and its book warms up again from history.
  5. Smoke check /health The API must report the commit that was deployed, and the engine must be alive.
  6. Check over the public address The same check again, through DNS, TLS and Caddy.

FIG. 1 What happens between a push to the main branch and a running engine.

Source: BillionArch platform code and deploy scripts.As of 19 October 2026.

A rollback is a revert and a push, through the same pipeline.

Upgrades do not restart trading

System upgrades never restart the trading services on their own; upgrades did exactly that more than once before the exemption. Instead, a daily check warns when a service is still running on a library that has since been replaced, so the restart happens when someone chooses it.

Backups

The database is dumped every night. A dump is written under a temporary name and counts only after it has been read back and checked, then it is renamed; daily and weekly dumps are kept. Restoring from a dump and rebooting the server have both been rehearsed.

Timers

Timers do the routine work: fetching the latest archived market data every hour, deepening the history in the background, checking for delisted coins, watching the disk, and the nightly backup. Every timer catches up after downtime, and every service names what runs when it fails. The unit files are themselves tested before they ship.