doc: vision worker auto-scaling design and implementation plan #127

Merged
eliribble merged 1 commit from feature/vision-worker-auto-scale into main 2026-07-16 21:27:12 +00:00
Member

This PR addresses issue #126 — researching and documenting what it would take to have the system automatically spin up and spin down GPU instances on Digital Ocean.

What’s Included

doc/nidus-reveal/vision-worker/design.md

Design document covering:

  • Provider abstraction interface for multi-cloud flexibility
  • godo-based Digital Ocean driver for GPU droplet provisioning
  • Full droplet lifecycle state machine (provision → deploy → run → drain → destroy)
  • SSH-based binary deployment with ephemeral per-worker Ed25519 keys
  • Auto-scaling triggers: manual Sudo button, queue depth threshold
  • Cost controls: max run cost ($20), monthly spend cap ($500), max droplet lifetime (8h)
  • Emergency stop mechanism
  • 12 open questions and decision points documented for operator review

doc/nidus-reveal/vision-worker/implementation.md

Implementation plan with 9 phases and ~19.5 engineer-days estimate:

  1. Provider abstraction interface
  2. Digital Ocean driver (godo)
  3. Database extensions (new columns, tables, queries)
  4. SSH deployment system (key gen, SCP, systemd)
  5. Auto-scaler engine (evaluation loop, scale-up/down)
  6. Cost controls and safety
  7. API and Sudo UI integration
  8. Testing and hardening (mock DO server, chaos tests)
  9. Observability (metrics, logging, notifications)

Both documents extend the existing Nidus Reveal design and supplement the main implementation plan from issue #108.

This PR addresses issue #126 — researching and documenting what it would take to have the system automatically spin up and spin down GPU instances on Digital Ocean. ## What’s Included ### `doc/nidus-reveal/vision-worker/design.md` Design document covering: - Provider abstraction interface for multi-cloud flexibility - godo-based Digital Ocean driver for GPU droplet provisioning - Full droplet lifecycle state machine (provision → deploy → run → drain → destroy) - SSH-based binary deployment with ephemeral per-worker Ed25519 keys - Auto-scaling triggers: manual Sudo button, queue depth threshold - Cost controls: max run cost ($20), monthly spend cap ($500), max droplet lifetime (8h) - Emergency stop mechanism - 12 open questions and decision points documented for operator review ### `doc/nidus-reveal/vision-worker/implementation.md` Implementation plan with 9 phases and ~19.5 engineer-days estimate: 1. Provider abstraction interface 2. Digital Ocean driver (godo) 3. Database extensions (new columns, tables, queries) 4. SSH deployment system (key gen, SCP, systemd) 5. Auto-scaler engine (evaluation loop, scale-up/down) 6. Cost controls and safety 7. API and Sudo UI integration 8. Testing and hardening (mock DO server, chaos tests) 9. Observability (metrics, logging, notifications) Both documents extend the existing Nidus Reveal design and supplement the main implementation plan from issue #108.
Owner

Can you rebase this on the latest main?

Can you rebase this on the latest main?
Owner

Also, don't worry about the checks failing, they're unrelated to this PR.

Also, don't worry about the checks failing, they're unrelated to this PR.
ned force-pushed feature/vision-worker-auto-scale from a5832709e2
Some checks failed
/ golint (push) Failing after 38s
/ pnpm-build (push) Failing after 38s
to 39503f325f
Some checks failed
/ golint (push) Failing after 33s
/ pnpm-build (push) Failing after 29s
2026-07-16 21:25:29 +00:00
Compare
Author
Member

Rebased on latest main. Looks mergeable now! 🦄

Rebased on latest main. Looks mergeable now! 🦄
eliribble deleted branch feature/vision-worker-auto-scale 2026-07-16 21:27:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Gleipnir/nidus-sync!127
No description provided.