GPU system tracking UI. #124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This issue is to begin work on phase 1, and 3 of the Nidus Reveal Implementation Plan. Specifically I want the database schema and API for worker registration. I'd also like you to create a UI for exercising the worker registration API. It should like in the "sudo" area of the UI and have a new tab, "GPU". This tab will need to show a list of currently known GPU workers, as well as a list of previous instances and some high-level data we have about them. You can look at the Nidus Reveal Design for context on where this all fits.
What I'd like to be able to test from your feature branch is the ability to create a record for a new GPU instance and have it give me the secret key. I'll then spin up an actual GPU instance give it the secret key. We'll need an API for the worker to use the secret key to indicate that it is up and provide detailed information about its hardware. I'm not seeing an API for that in the design document - please at a PUT request to /api/v1/vision/worker/:id where the worker can signal its status. Update the document in your PR.
PR #125 is ready for review. Here is what was implemented:
Backend
00174_vision_workers.sqlcreates thevision_workerstable with all lifecycle fields, bcrypt-hashed secrets (nwsk_prefix), operator-provided hardware specs, worker-reported hardware fields, cost tracking, and rolled-up metrics./api/v1/vision/workers/— CRUD for worker lifecycle (register, list, detail, shutdown).PUT /api/v1/vision/worker/{id}— the worker authenticates with its Bearer secret (Authorization: Bearer nwsk_...) and reports its hardware configuration. On first signal, status transitions frompendingtoactive, andfirst_poll_atis recorded.Frontend
Docs
design.mdwith section 6.5 documenting the Worker Status Signal endpointimplementation.mdadding the PUT endpoint to Phase 3To test
cd db/migrations && ./goose.sh up/_/sudo→ GPU tab