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

[ISSUE-47] support run on ray community version #89

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

cbqiao
Copy link
Contributor

@cbqiao cbqiao commented Jul 13, 2023

What changes were proposed in this pull request?

  • rename module from geaflow-on-ray to geaflow-on-ray-community
  • set actor to DETACHED mode to enable long running
  • save actor handle to avoid be killed.

How was this PR tested?

  • Tests have Added for the changes
  • Production environment verified

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2023

CLA assistant check
All committers have signed the CLA.

@pengzhiwei2018 pengzhiwei2018 self-requested a review July 13, 2023 05:49
@cbqiao cbqiao force-pushed the support_ray_community branch from c9ab3ff to 66b9c14 Compare July 13, 2023 05:52
Copy link

@SongGuyang SongGuyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a document for geaflow on ray tutorial? For example, we should explain how to install ray. Here is the doc about ray installation https://docs.ray.io/en/latest/ray-overview/installation.html

@@ -41,6 +42,7 @@ public static ActorHandle<RayMasterRunner> createMaster(ClusterConfig clusterCon
ActorHandle<RayMasterRunner> masterRayActor = Ray
.actor(RayMasterRunner::new, clusterConfig.getConfig())
.setMaxRestarts(clusterConfig.getMaxRestarts())
.setLifetime(ActorLifetime.DETACHED)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"detached" actor will not be killed when the ray job is finished or failed. Does it make sense for your scenes? For more detail, you can read this doc https://docs.ray.io/en/latest/ray-core/actors/named-actors.html?highlight=detached#actor-lifetimes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it make sense for out scenes. we expected the actor run with long-running mode.

*/
RAY,
RAY_COMMUNITY,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerning about this. Why we rename ray to ray community? For the open source software, the meaning of "ray" is "open source ray" by default. I think we don't need to rename it because there is only one ray project in community currently. "RAY_COMMUNITY" is confusing for open source users.

Copy link
Collaborator

@Leomrlin Leomrlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Leomrlin Leomrlin linked an issue Oct 26, 2023 that may be closed by this pull request
@cbqiao cbqiao force-pushed the support_ray_community branch from 66b9c14 to 5903f25 Compare October 26, 2023 13:29
Copy link

@pengzhiwei2018 pengzhiwei2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pengzhiwei2018 pengzhiwei2018 merged commit 40b1f94 into TuGraph-family:master Oct 27, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix error when run under open source ray cluster environment
5 participants