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

[KubeRay] [Doc] [Clusters] Fix RayCluster quickstart and VM quickstart for mac #43781

Merged

Conversation

architkulkarni
Copy link
Contributor

The KubeRay RayCluster quickstart didn't work out of the box for Apple silicon macs (M1, M2, etc). This PR fixes it by adding an alternative instruction to use the -aarch64 image.

The code snippet socket.gethostbyname(socket.gethostname()) in the VM cluster quickstart didn't work for newer Mac OS versions; see the linked issue for full details. This PR fixes the issue by using socket.gethostbyname("localhost") instead.

Thanks to @darktempla for diagnosing the issue and providing the fix!

Why are these changes needed?

Related issue number

Closes #42964

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Archit Kulkarni <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
@architkulkarni
Copy link
Contributor Author

architkulkarni commented Mar 7, 2024

Doc tabs look correct. (it's purple in the second one because my mouse was hovering on it)

Screenshot 2024-03-07 at 10 52 04 AM Screenshot 2024-03-07 at 10 52 12 AM

@architkulkarni architkulkarni merged commit 8aa35d6 into ray-project:master Mar 7, 2024
9 checks passed
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 7, 2024
…t for mac (ray-project#43781)

* Update RayCluster deployment instructions for ARM64 and x86-64

Signed-off-by: Archit Kulkarni <[email protected]>

* Update socket.gethostbyname() to use 'localhost' instead of socket.gethostname()

Signed-off-by: Archit Kulkarni <[email protected]>

* Lint

Signed-off-by: Archit Kulkarni <[email protected]>

* Lint

Signed-off-by: Archit Kulkarni <[email protected]>

---------

Signed-off-by: Archit Kulkarni <[email protected]>
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.

Ray Getting Started Examples Not Working on M3 Macbook Pro
3 participants