API Server: Core proxy endpoints #3

Closed
opened 2026-03-05 18:44:28 -06:00 by jeremy · 0 comments
Owner

Implement the core proxy endpoints in the central API server that aggregate data from all 3 node agents.

Tasks

  • GET /api/services - proxy to all node agents, merge container lists with node metadata
  • GET /api/nodes - return status of all 3 nodes (reachable, container count, uptime)
  • POST /api/services/{node}/{id}/start|stop|restart - proxy action to correct node agent
  • GET /api/services/{node}/{id}/logs - proxy log fetch to correct node
  • Error handling when a node agent is unreachable (return partial data with node status)

Notes

  • Node agent base URLs configured via environment variables
  • NODE_AGENT_URLS: hf-pdocker-01:8889, hf-pdocker-02:8889, bart:8889
  • Uses httpx for async requests to node agents
Implement the core proxy endpoints in the central API server that aggregate data from all 3 node agents. ## Tasks - [ ] `GET /api/services` - proxy to all node agents, merge container lists with node metadata - [ ] `GET /api/nodes` - return status of all 3 nodes (reachable, container count, uptime) - [ ] `POST /api/services/{node}/{id}/start|stop|restart` - proxy action to correct node agent - [ ] `GET /api/services/{node}/{id}/logs` - proxy log fetch to correct node - [ ] Error handling when a node agent is unreachable (return partial data with node status) ## Notes - Node agent base URLs configured via environment variables - NODE_AGENT_URLS: hf-pdocker-01:8889, hf-pdocker-02:8889, bart:8889 - Uses httpx for async requests to node agents
jeremy added this to the v1.0 milestone 2026-03-05 18:44:28 -06:00
jeremy added the feature label 2026-03-05 18:44:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jeremy/farm-manager#3