-
Notifications
You must be signed in to change notification settings - Fork 204
Restructure of 'How-to-add-a backend' contribution guide #917
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
Conversation
|
@Egor-S Requested changes made. |
contributing/BACKENDS.md
Outdated
| - API for creating and terminating containers | ||
| - Safe imports | ||
|
|
||
| Examples: Amazon Elastic Container Service(ECS), Google Cloud Run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support these. There should be kubernetes and vastai
contributing/BACKENDS.md
Outdated
| To speed up provisioning, we prebuild VM images with necessary dependencies, available in `packer/`. | ||
|
|
||
| ### Adding Docker-only compute backend | ||
| Examples: Microsoft Azure, AWS, Google Cloud Platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use dstack internal names. azure, gcp, etc.
contributing/BACKENDS.md
Outdated
| - cloud-init script (preferable) | ||
| - cloud-init script (preferred) | ||
| - API for creating and terminating instances | ||
| - Safe imports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess my previous comment was not clear, my bad. It should not be there, because it has nothing to do with backends, only Python code in dstack itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still unclear, I had safe imports originally under finalising integration this way:
Add a safe import for your backend in src/dstack/_internal/server/services/backends/__init__.py
Should this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This quote is correct, it should stay. Safe imports are related to this exact file (src/dstack/_internal/server/services/backends/__init__.py).
|
@Egor-S Changes made |
Fixes #915
Restructured into sections:
gpuhuntdstacksetup.py