Architecture¶
Centralized control plane, peer-to-peer data plane, pluggable mesh.
Three planes, three scaling stories:
- Control plane — heartbeats, job specs, state, result metadata. Tiny messages; flows through the controller. Runs on mini-PC-class hardware.
- Data plane — model weights, image layers, traces. Hundreds of GB; flows node-to-node over the fastest direct path. The controller orchestrates transfers but never proxies bytes — it must never become a bandwidth bottleneck.
- Mesh VPN — a pluggable interface. The node daemon requires exactly three things from it: stable node identity/addressing, NAT traversal, and peer restriction. Two implementations ship: Tailscale (default; zero effort) and Headscale (self-hosted Tailscale-protocol control plane; per-pool coordinator; no commercial SaaS dependency). No third implementation around raw WireGuard — that is reinventing Tailscale, and NAT traversal is the part that gets reinvented wrong.
Components¶
- Controller — single compose unit: API server, scheduler, Postgres state store, web UI, webhook dispatcher, optional OCI registry mirror.
- Node daemon — small daemon on each node. Heartbeats state, executes jobs, performs orchestrated transfers, enforces quiet-during-profiling, handles drain/reboot/driver-flip instructions, self-updates on controller command.
- Transfer plane — daemon-to-daemon, controller-orchestrated.
rsync --no-compressover fabric IPs for the proven path; content addressing lets better transports slot in later.
Protocol direction¶
Daemon-initiated throughout: the daemon polls GET /work/next, POSTs
heartbeats and digests. Nodes never need inbound connectivity — a requirement
for home-lab donors behind NAT, and the reason the controller stays simple.
Network requirements¶
No global DNS required. Node daemons connect outbound; the UI rides the mesh; a public dashboard is opt-in via tunnel. If self-hosting the mesh with Headscale, the coordinator needs a public address — put it on a $5 VPS running only the coordinator. The controller itself, with all the state, stays behind NAT.