Skip to content
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

[Serve] deploy_group method deletes all deployments #29207

Closed
mfojtak opened this issue Oct 10, 2022 · 5 comments
Closed

[Serve] deploy_group method deletes all deployments #29207

mfojtak opened this issue Oct 10, 2022 · 5 comments
Assignees
Labels
bug Something that is supposed to be working; but isn't serve Ray Serve Related Issue

Comments

@mfojtak
Copy link

mfojtak commented Oct 10, 2022

What happened + What you expected to happen

serve.run calls deploy_group which wipes out all previosly deployed deployments.

This is because:

deployment_names_to_delete = all_deployments_names.difference(
                new_deployments_names
            )

in client.py

this finds difference between sets - which is all existing deployments.
It should be using intersection - which finds new deployments if they already exist

Also there is hardcoded value for remove_past_deployments in serve.run:

client.deploy_group(
        parameter_group, _blocking=_blocking, remove_past_deployments=True
    )

Thsi should be parametric. Btw. setting this to False fixes the problem and serve.run works as expected - leaving existing deployments intact and updating new ones.

Versions / Dependencies

2.0.0

Reproduction script

serve.run(deployment_A)

serve.run(deployment_B) #deployment_A will be deleted

Issue Severity

Medium: It is a significant difficulty but I can work around it.

@mfojtak mfojtak added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 10, 2022
@simon-mo simon-mo added serve Ray Serve Related Issue and removed triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 11, 2022
@sihanwang41
Copy link
Contributor

This is supported with new api: https://docs.ray.io/en/latest/serve/api/doc/ray.serve.run.html

you can specify name to each application deploy to avoid deployment deletion

@JoshKarpel
Copy link
Contributor

JoshKarpel commented Mar 24, 2023

@sihanwang41 is this option supported through the serve run CLI command and KubeRay's Serve interface?

@sihanwang41
Copy link
Contributor

it is coming in the 2.4 for CLI.
Kuberay is not supported yet.

@JoshKarpel
Copy link
Contributor

Thanks! Is there a ticket I can follow for support in KubeRay?

@sihanwang41
Copy link
Contributor

ray-project/kuberay#985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't serve Ray Serve Related Issue
Projects
None yet
Development

No branches or pull requests

4 participants