Skip to content

Add MassedCompute backend - #4533

Draft
peterschmidt85 wants to merge 16 commits into
masterfrom
pr_massedcompute
Draft

peterschmidt85 wants to merge 16 commits into
masterfrom
pr_massedcompute

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds MassedCompute as a dstack backend for single-node, on-demand CPU and GPU VMs. This gives users another source of RTX PRO 6000 capacity, with 1, 2, 4, or 8 GPUs per VM. Supports experimental network volumes, including existing storage registered with volume_id.

Implementation notes

  • Uses live offers from Add MassedCompute catalog provider gpuhunt#289. The branch pins that commit until release. Launches use Ubuntu image 84 and region any. MassedCompute chooses the site.
  • After a lost launch reply, dstack looks up the same VM by its generated name. If the VM never appears, or is deleted before dstack first sees it by UUID, its requested volumes can stay reserved indefinitely. A server crash before the launch result is saved can still leave an orphan ([Feature]: Detect orphan instances #3453).
  • Passes up to eight volume IDs at launch. The server reserves each storage ID for one dstack instance and checks both the provider attachment and the guest mount before admitting jobs. Jobs can reuse a VM that holds their volumes.
  • The shim bind-mounts a host-mounted filesystem into the job container. All MassedCompute API calls and mount-path rules stay in the Python backend.
  • On graceful termination, the server flushes the mounts before deleting the VM. If the flush fails, dstack retains the VM and compute billing continues. If storage connectivity is lost, the provider can acknowledge a flush with uploads pending. Deleting the VM then can lose recent changes. Provider storage limitations

Open before merge

  • A lost volume-create reply followed by a failed lookup can leave storage untracked.
  • Auto-cleanup can request deletion of a managed volume while it is in use under a second registration. This also affects existing backends ([Bug]: Volume auto-cleanup marks a managed volume for deletion while it is in use under another name #4537).
  • Volume readiness polls inside a shared worker for up to a minute. A busy volume can also trigger a database reservation attempt for each matching SKU.
  • The 0.22.8 client rejects mixed run and fleet plans and resource lists containing a MassedCompute volume, instance or provisioned job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant