Skip to main content

Module coordinator_server

Module coordinator_server 

Source
Expand description

HTTP/WebSocket server for the Coordinator.

Endpoints:

  • GET /health — liveness check
  • GET /workers — list active workers with capabilities
  • GET /summary — cluster summary (total CPUs, GPUs, RAM)
  • POST /register — worker self-registration (JSON body)
  • POST /submit — client submits a SerializedPlan for execution
  • POST /heartbeat — worker heartbeat with load metrics

All mutating endpoints require ?token=sk-xxx when a token is configured.

Functions§

coordinator_router
Build the coordinator router.
serve_coordinator
Start the coordinator server.