Proto¶
Server and workers share one WebSocket at /proto. The Proto derive encodes all frames as binary. A session must pass version agreement, handshake, authorization and capability exchange before the job loop can start.
flowchart LR
conn[Connection] --> cap[Capabilities and Assignment]
cap --> jobs[Jobs]
jobs --> transfer[Transfer]
conn --> fed[Federation]
-
Handshake, authorization, server restarts, server stop and cache sessions.
-
Worker capabilities, store summary, pull-based assignment.
-
Flake and build jobs, progress reports, failure kinds and aborts.
-
NAR uploads and downloads, logs, download progress and credentials.
-
Every message on
/protowith its fields and lane. -
gradient-proxy: a pool of workers joined to a server as one worker.
Related¶
- Scheduler: how the next job for a worker gets picked
- Add a Remote Worker: the setup guide