Skip to content

[Java] Allow Ray actors to start in a different namespace than the driver in Java API #25665

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

Closed
shrekris-anyscale opened this issue Jun 10, 2022 · 4 comments
Assignees
Labels
core Issues that should be addressed in Ray Core enhancement Request for new feature and/or capability java P3 Issue moderate in impact or severity

Comments

@shrekris-anyscale
Copy link
Contributor

Description

The Java API should allow Ray actors to start in a different namespace than the driver.

In Python, this is allowed using the actor options. E.g.:

ray.init(namespace="driver-namespace")

@ray.remote(namespace="actor-namespace")
class ExampleActor:
    ...

# Starts ExampleActor in the
# "actor-namespace" namespace
ExampleActor.remote()

More context can be found here.

Use case

This provides finer-grained control over Ray actor behavior. Ray applications can make assumptions about their actors' namespaces regardless of the driver namespace.

@shrekris-anyscale shrekris-anyscale added java enhancement Request for new feature and/or capability core Issues that should be addressed in Ray Core labels Jun 10, 2022
@simon-mo
Copy link
Contributor

@raulchen can this be part of Ray 2.0 (branch cut 06/22 for beta and 7/22 for final)? This doesn't necessarily block #22726 but would be necessary for Ray Serve Java API's public release. Thank you!

@raulchen
Copy link
Contributor

@simon-mo This change should be simple. I'll ask @jovany-wang to work on this when he come back to work next week. Probably it will be done after 6/22, but definitely before 7/22.

@simon-mo
Copy link
Contributor

Awesome thanks!

@jovany-wang
Copy link
Contributor

Duplicate to #22563

@richardliaw richardliaw added the P3 Issue moderate in impact or severity label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues that should be addressed in Ray Core enhancement Request for new feature and/or capability java P3 Issue moderate in impact or severity
Projects
None yet
Development

No branches or pull requests

5 participants