Retrieving IP address of head node from ray up

Hi,

I am looking to launch multiple remote Ray clusters ON AWS from the same machine concurrently.

To accomplish this I was looking to run “ray up” via the CLI followed by “JobSubmissionClient().submit_job()” via the Python client.

From looking at the docs, I haven’t found a good way to find the IP address of the head node to instantiate the JobSubmissionClient with (outside of grepping through the output of the ray up call).

This seems like it would be a very common thing to do, so it feels like I am using Ray incorrectly.

Thanks!

Great feedback, I think this is actually a gap in our API. I’ve opened an enhancement request here: [Cluster Launcher] [State API] [Jobs] Add API to get head node IP · Issue #34685 · ray-project/ray · GitHub

1 Like