-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[core] Fix non default dashboard_agent_listen_port not used when connected to the node #33834
[core] Fix non default dashboard_agent_listen_port not used when connected to the node #33834
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also don't expose dashboard-agent-listen-port
as an option for ray.init
but only for ray start
.
Wondering if we should make it consistent as well.
I think this was intentional (since ray.init user normally don't use this), but I guess there's nothing to lose by just supporting it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the test issue is resolved
return True | ||
|
||
try: | ||
await async_wait_for_condition_async_predicate(verify, retry_interval_ms=2000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which part do we really intend to retry here? Does it make sense to do the setup once, and only retry the part that checks if the logs have appeared yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good pending the test issue
…ix-dashboard-listen-port
cc @zhe-thoughts for the approval. This is the issue that broke the prod. Also, cc @alanwguo is this still urgent to merge it by 2.4? |
This seems an easy fix, can we merge this into 2.4 so that we don't have to wait for 2.5? We have potential port conflict issue (https://github.com/anyscale/product/issues/18641) in product even though we haven't seen for the dashboard agent port. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK this is important enough so let's merge into master. But let's watch release tests for possible issues. Thanks
…ected to the node (ray-project#33834) If a ray node is started with non-default dashboard-agent-listen-port, and when connecting to the node (e.g. from a driver or a from ray job client) in a worker, ray currently uses the default value for the overwritten port. This PR fixes this by caching the dashboard-agent-listen-port locally, and reading the cached value when connecting to the node, such that workers connected to the node will see the overwritten port value. Signed-off-by: elliottower <elliot@elliottower.com>
…ected to the node (ray-project#33834) If a ray node is started with non-default dashboard-agent-listen-port, and when connecting to the node (e.g. from a driver or a from ray job client) in a worker, ray currently uses the default value for the overwritten port. This PR fixes this by caching the dashboard-agent-listen-port locally, and reading the cached value when connecting to the node, such that workers connected to the node will see the overwritten port value. Signed-off-by: Jack He <jackhe2345@gmail.com>
Why are these changes needed?
If a ray node is started with non-default
dashboard-agent-listen-port
, and when connecting to the node (e.g. from a driver or a from ray job client) in a worker, ray currently uses the default value for the overwritten port.This PR fixes this by caching the
dashboard-agent-listen-port
locally, and reading the cached value when connecting to the node, such that workers connected to the node will see the overwritten port value.Manual testing with repro script in #33397
It has the right port, and logs retrievable.
Related issue number
Closes #33397
Closes #33664
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.