Skip to content

Support MassedCompute network volumes - #4553

Draft
peterschmidt85 wants to merge 1 commit into
masterfrom
pr_massedcompute_volumes
Draft

peterschmidt85 wants to merge 1 commit into
masterfrom
pr_massedcompute_volumes

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Adds experimental network volumes to the MassedCompute VM backend (#4533). Users can create Persistent Storage or register an existing volume by UUID.

MassedCompute backend

Core changes

  • A backend can report where a volume is mounted on a VM. The scheduler reuses a VM only if it has the requested volumes. The shim verifies each mount and binds it into the job container.
  • The existing attachment record stays with the VM across jobs.
  • The volume worker records PROVISIONING before a managed MassedCompute create. If it stops before sending the request, the volume can remain pending.

Upgrade the CLI and all server replicas before first use. An older server replica can delete the VM without flushing its volumes.

Blocker

Caution

Before deleting a MassedCompute VM with network volumes, dstack waits for sync over SSH. The command has a 60-second timeout. If it fails, the VM stays billable while dstack retries. Termination · SSH flush

This can delay pre-provisioning instances for a backend fleet on another VM-based backend. For example, applying a fleet with nodes: 2..10 pre-provisions two instances. If the same server replica is already handling as many instance operations as it can, waiting for the MassedCompute flush can delay those instances. Instances provisioned on demand for a submitted run use a separate provisioning path. Fleet pre-provisioning · Instance pipeline

Crusoe already leaves an instance TERMINATING after requesting deletion and checks its status later. To use that pattern here, dstack would need to start the flush, return to processing other instances, and confirm that the flush succeeded before deleting the MassedCompute VM. This PR only receives the result over SSH. If the connection drops or the server restarts, it cannot check the result of that attempt later. Crusoe termination

@peterschmidt85
peterschmidt85 force-pushed the pr_massedcompute_volumes branch 3 times, most recently from 60040a2 to 9ba585f Compare November 27, 2026 14:33
@peterschmidt85
peterschmidt85 force-pushed the pr_massedcompute_volumes branch from 9ba585f to eeb0a22 Compare November 27, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant