Repository navigation
[Data] Set runtime_env var for shuffle reduce tasks prevent Ray OOM worker kill on map_groups_autoscaling release test - #64737
Merged
Conversation
Signed-off-by: Ayush Kumar <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds max_calls=1 to the @ray.remote decorator of _shuffle_reduce_task. The reviewer points out that this will cause severe performance degradation and worker churn by restarting the worker process after every task, and suggests reverting this change to address any underlying memory issues more efficiently.
Signed-off-by: Ayush Kumar <[email protected]>
Signed-off-by: Ayush Kumar <[email protected]>
Signed-off-by: Ayush Kumar <[email protected]>
ayushk7102
marked this pull request as ready for review
July 14, 2026 19:04
owenowenisme
approved these changes
Jul 15, 2026
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…orker kill on map_groups_autoscaling release test (ray-project#64737) ## Description The `map_groups_autoscaling_hash_shuffle_*` nightly release test started failing with worker OOM kills on `_shuffle_reduce_task`, beginning after ray-project#64538, which removed setting `max_calls=1` on the remote task to alleviate the performance regressions on join tests. In order to circumvent this issue, we can give reduce tasks their own dedicated worker pool via `runtime_env` We isolate the shuffle reduce tasks into running on their own pool of workers (mirroring the same isolation done on the shuffle map tasks in https://github.com/ray-project/ray/blob/bb3934d01ca5bd4c88cc66326a32e7c364ffeff9/python/ray/data/_internal/execution/operators/hash_shuffle_v2.py#L15) ## Related issues ## Additional information --------- Signed-off-by: Ayush Kumar <[email protected]> Signed-off-by: 400Ping <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
map_groups_autoscaling_hash_shuffle_*nightly release test started failing with worker OOM kills on_shuffle_reduce_task, beginning after #64538, which removed settingmax_calls=1on the remote task to alleviate the performance regressions on join tests.In order to circumvent this issue, we can give reduce tasks their own dedicated worker pool via
runtime_envWe isolate the shuffle reduce tasks into running on their own pool of workers (mirroring the same isolation done on the shuffle map tasks in
ray/python/ray/data/_internal/execution/operators/hash_shuffle_v2.py
Line 15 in bb3934d
Related issues
Additional information