Repository navigation
[Core] [no_early_kickoff] Fix ray start command output - #34081
Conversation
Signed-off-by: Jiajun Yao <[email protected]>
rkooo567
left a comment
There was a problem hiding this comment.
do we still disallow to connect to win/mac nodes, and it can be enabled only by env var? If so, we should probably add that sentence to the default output?
| # of the cluster. Please be careful when updating this line. | ||
| cli_logger.print( | ||
| cf.bold(" {} ray start --address='{}'"), | ||
| f"{ray_constants.ENABLE_RAY_CLUSTERS_ENV_VAR}=1" |
There was a problem hiding this comment.
is this env var still useful?
There was a problem hiding this comment.
yea, if you want to start a multi-node mac cluster, you need this env var.
There was a problem hiding this comment.
So, I'd like to understand the user journey here. Is this correct?
- win/mac users start ray using ray start --head
- they connect a worker node using ray start --address
- Get an error message that it needs an env var when starting ray start --head, and it is not recommended and not tested.
- users start env_var ray start --head
There was a problem hiding this comment.
Yes. Also with this PR, the output of ray start --head won't contain instructions about how to create a worker node if it's osx or windows (it's hidden since it's not supported).
| if bootstrap_address.startswith("127.0.0.1:"): | ||
| if ray_constants.ENABLE_RAY_CLUSTER: | ||
| if ray_constants.ENABLE_RAY_CLUSTER: | ||
| cli_logger.print("To add another node to this Ray cluster, run") |
There was a problem hiding this comment.
This is now only printed when you want to start a multi-node cluster. This means by default you won't see this on OSX and windows unless you set the RAY_ENABLE_WINDOWS_OR_OSX_CLUSTER env.
There was a problem hiding this comment.
what's happening if you run ray start --address in win/mac? Does it raise an exception to set this env var?
There was a problem hiding this comment.
I didn't change that behavior. Yes it will abort and raise an exception.
There was a problem hiding this comment.
I was also thinking whether we should check the value of address, if it's 127.0.0.1 we proceed (basically saying multi-node Ray cluster on a single machine is supported) otherwise we raise an exception to set this env var.
| cf.magenta("."), | ||
| "ray{}init({})", | ||
| cf.magenta("."), | ||
| "_node_ip_address{}{}".format( |
There was a problem hiding this comment.
I added this back because it's needed even for Linux when the node has multiple IPs, this make sure driver and the node use the same ip.
What do you mean by "To connect to this Ray instance from outside of the cluster"
I assume that it's about running ray jobs remotely via jobs api? ray client doesn't even use this port right? How about re-writing in this way?
One thing I'm not sure about is serve. Serve seems to rely on ray client port |
|
If users only install |
| "a remote client." | ||
| ) | ||
| cli_logger.newline() | ||
| cli_logger.print("To see the status of the cluster, use") |
There was a problem hiding this comment.
| cli_logger.print("To see the status of the cluster, use") | |
| cli_logger.print("To view the status of the cluster, use") |
There was a problem hiding this comment.
Is view better than see?
There was a problem hiding this comment.
I think so. I don't find "see" used very often. It seems @angelinalg also suggested this kind of change here: #32854 (comment).
| cli_logger.newline() | ||
| cli_logger.print( | ||
| cf.underlined( | ||
| "If connection fails, check your " |
There was a problem hiding this comment.
What does this "connection" refer to?
There was a problem hiding this comment.
Good question. @rkooo567 is it about dashboard cannot be seen?
There was a problem hiding this comment.
I think it is the case when you try accessing the dashboard outside the cluster. I am open to change the term. The current one sounds pretty bad. @scottsun94 any good suggestion?
There was a problem hiding this comment.
Just a bit more explicit? "If connection to Ray Dashboard fails, check your firewall settings and network configuration."
Signed-off-by: Jiajun Yao <[email protected]>
rkooo567
left a comment
There was a problem hiding this comment.
I will run and do final review tmrw
| cli_logger.newline() | ||
| cli_logger.print( | ||
| cf.underlined( | ||
| "If connection fails, check your " |
There was a problem hiding this comment.
I think it is the case when you try accessing the dashboard outside the cluster. I am open to change the term. The current one sounds pretty bad. @scottsun94 any good suggestion?
Signed-off-by: Jiajun Yao <[email protected]>
There was a problem hiding this comment.
LGTM. But I wonder if we should change the order of command explanation. cc @scottsun94 for input.
I think the most important commands should be printed at the top/bottom because most of ppl probably don't read the full sentence. that said, we should not print ray stop at the end (it is not that useful). I'd like to suggest to make this change;
- Remove
If connection to the dashboard fails, check your "...-> this sentence. It is not useful at all. Let's rather include the URL to the dashboard. - For the order, I think it is ideal. Wdyt?
- worker node connection
- ray.init()
- job submission
- stop
- ray status
- dashboard
The order makes sense to me. |
|
@jjyao |
Signed-off-by: Jiajun Yao <[email protected]>
rkooo567
left a comment
There was a problem hiding this comment.
LGTM. Give me the merge sign when you think it is ready @scottsun94
Go ahead. |
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[email protected]>
|
Failed tests are unrelated. |
With #32409, we stopped printing out information like dashboard url when creating a single node ray cluster on OSX and windows. This is a regression and this PR reverts back to the old behavior. Signed-off-by: Jiajun Yao <[email protected]>
With #32409, we stopped printing out information like dashboard url when creating a single node ray cluster on OSX and windows. This is a regression and this PR reverts back to the old behavior. Signed-off-by: Jiajun Yao <[email protected]>
With ray-project#32409, we stopped printing out information like dashboard url when creating a single node ray cluster on OSX and windows. This is a regression and this PR reverts back to the old behavior. Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: elliottower <[email protected]>
With ray-project#32409, we stopped printing out information like dashboard url when creating a single node ray cluster on OSX and windows. This is a regression and this PR reverts back to the old behavior. Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: Jack He <[email protected]>
Why are these changes needed?
With #32409, we stopped printing out information like dashboard url when creating a single node ray cluster on OSX and windows. This is a regression and this PR reverts back to the old behavior.
OSX and windows:
Linux:
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.