-
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] Always make request on fetch_local in wait even if num_objects in memory #50121
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: dayshah <[email protected]>
ebc96c1
to
04eb297
Compare
Signed-off-by: dayshah <[email protected]>
@@ -14,6 +14,7 @@ COPTS_WITHOUT_LOG = select({ | |||
"//conditions:default": [ | |||
"-Wunused-result", | |||
"-Wconversion-null", | |||
"-Wmisleading-indentation", |
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.
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.
Code looks great. Lets think about how to write tests
Signed-off-by: dayshah <[email protected]>
# to start pulling y and z | ||
ray.wait([x, y, z], num_returns=1, fetch_local=True) | ||
time.sleep(3) | ||
|
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.
memory_summary
and list_objects
show that objects are all always in the same store? Is making fake nodes using cluster.add_node not a viable solution for this, do we need a test env with two actual nodes
Signed-off-by: dayshah <[email protected]>
start_time = time.perf_counter() | ||
ray.get([y, z]) | ||
# y and z should be immediately available as pull requests should've | ||
# been made immediately on the ray.wait call | ||
time_to_get = time.perf_counter() - start_time |
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.
You can check ray.available_resources()
Why are these changes needed?
We always want to make pull requests to get the objects passed into
ray.wait
on different nodes whenray.wait
is called withfetch_local
. Right now we don't make that request if we've already gottennum_objects
from the core worker memory store.Related issue number
Closes #49257
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.