-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[CLI] add support to run app on a specific cluster #13894
[CLI] add support to run app on a specific cluster #13894
Conversation
I can run this with ``` python -m pytest tests/tests_clusters/test_cluster_lifecycle.py ``` test fails ofc because both the assertions don't work yet
supported commands: - lightning clusters create - lightning clusters list - lightning clusters delete
verified e2e via ``` python -m pytest tests/tests_clusters/test_cluster_lifecycle.py::test_cluster_list ```
I can't validate this just yet because I don't have the feature flag enabled in prod.
Co-authored-by: William Falcon <[email protected]>
we need this as a second step once BYOC compute clusters can be created - running apps on specific clusters
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.
Thanks for the PR @nicolai86. Overall, the flow looks good
I have made few comments about some of the early design choices we made which conflicts with the design of this PR. We don't necessarily have to go with the original design but we need to come to a conscious consensus on how we should go about it
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.
LGTM !
@@ -121,6 +130,9 @@ def run(): | |||
@run.command("app") | |||
@click.argument("file", type=click.Path(exists=True)) | |||
@click.option("--cloud", type=bool, default=False, is_flag=True) | |||
@click.option( | |||
"--cluster-id", type=str, default=None, help="Run Lightning App on a specific Lightning AI BYOC compute cluster" |
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.
How does the cluster id relate to the cluster name given in the cloud compute?
Also, @nicolai86 can you give us an example of such an ID? Is it human readable or just a long number?
addressed comments that are applicable
Follow up PR for #13835.
This PR changes the run command to support a
--cluster-id
flag when--cloud
is provided.This way customers can run applications on their own BYOC compute clusters.
Verification