Skip to content
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

[cherry-pick][data] Improve stall detection for StreamingOutputsBackpressurePolicy #41720

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

raulchen
Copy link
Contributor

@raulchen raulchen commented Dec 8, 2023

Cherry-pick #41637 to 2.9 release branch. This is a stability fix for a new backpressure feature in Ray Data

Why are these changes needed?

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

…ray-project#41637)

When there is non-Data code running in the same clusters. Data StreamExecutor will consider all submitted tasks as active, while they may not actually have resources to run.
ray-project#41603 is an attempt to fix the data+train workload by excluding training resources.

While this PR is a more general fix for other workloads, with two main changes:
1. Besides detecting active tasks, we also detect if the downstream is not making any progress for a specific interval.
2. Introduce a new `reserved_resources` option to allow specifying non-Data resources.

This PR along can also fix ray-project#41496
---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Stephanie Wang <swang@cs.berkeley.edu>
Co-authored-by: Stephanie Wang <swang@cs.berkeley.edu>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
@architkulkarni architkulkarni added the release-blocker P0 Issue that blocks the release label Dec 8, 2023
@architkulkarni architkulkarni merged commit 1f5a10a into ray-project:releases/2.9.0 Dec 8, 2023
15 of 16 checks passed
@raulchen raulchen deleted the cp-9ea2e8b46c branch December 8, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker P0 Issue that blocks the release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants