Skip to content

Conversation

@andygrove
Copy link
Member

This PR removes the legacy shuffle reader/writer that only work on a single node.

I also added brief documentation on distributed testing.

futures = []
opt = {}
opt["resources"] = {"worker": 1e-3}
# opt["resources"] = {"worker": 1e-3}
Copy link
Member Author

Choose a reason for hiding this comment

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

I had to remove this; otherwise, the Ray cluster could not find a suitable worker node.

@franklsf95 do we still need this?

Copy link
Contributor

Choose a reason for hiding this comment

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

This only works when you start a Ray cluster with custom resources, e.g. the head node with ray start --head --resources='{"head":1}' and worker nodes each with ray start --resources='{"worker":1}'. I had this resource requirement to make sure the tasks run on worker nodes exclusively (for fair benchmarking). If we don't do this, the task could also run on the driver node. Depending on the use case, this may be harmless.

Copy link
Contributor

@edmondop edmondop left a comment

Choose a reason for hiding this comment

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

Looks good, have few minor comments

futures = []
opt = {}
opt["resources"] = {"worker": 1e-3}
# opt["resources"] = {"worker": 1e-3}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a comment here is useful?

opt["resources"] = {"worker": 1e-3}
if use_ray_shuffle:
opt["num_returns"] = output_partitions_count
#opt["resources"] = {"worker": 1e-3}
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

## Start Ray Worker Nodes(s)

```shell
ray start --address=10.0.0.23:6379 --redis-password='5241590000000000'
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you need to start redis?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, this is built into ray somehow and this is the password that it uses

@andygrove andygrove merged commit 1759b73 into apache:main Oct 5, 2024
@andygrove andygrove deleted the distributed branch October 5, 2024 16:15
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.

3 participants