-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Support dstack volumes #1158
Comments
Would you be able to use the aws volume with other backends? (e.g. gcp or tensorboard) |
@JosvanderWesthuizen Volumes can be used only within the same provider (and within the same region). That's how volumes work. |
@r4victor BTW, would be great to update the issue description to reflect the plans to use |
Updated issue description with |
Problem
Currently, dstack lacks built-in functionality that would allow users to persist data between runs. Cloud providers usually provide data persistence via network volumes. The proposal is to introduce volumes to dstack.
Solution
Users will manage volumes via
dstack apply
. The newdstack apply
configuration of typevolume
is to be introduced. Here's some examples ofvolume
configurations:AWS EBS dstack-managed volume
AWS EBS external volume
Once a volume is already added to dstack, it can be mounted in a run like this:
dstack will try to provision the instance in the backend/region of that volume. In case of no availability, the run will fail – other backends/regions won’t be tried since the specified volume cannot be mounted there.
Scope and Future plans
We'll start by implementing volumes support for AWS backend. Other backends such as GCP, Azure, OCI, runpod are likely to follow.
dstack will implement default volume configurations for all backends to allow for simple volume configurations as above. Users may also need to specify advanced configurations to make use of backend-specific features. This can be done by introducing a
spec
property of different types for different volumes storage options such as EBS/Persistent Disks/HyperDisks/etc:The following is not planned for initial volume release but may be added later:
The text was updated successfully, but these errors were encountered: