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

[serve] change default for max and target ongoing requests #45943

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

zcin
Copy link
Contributor

@zcin zcin commented Jun 13, 2024

[serve] change default for max and target ongoing requests

Change default for max_ongoing_requests from 100 to 5
Change default for target_ongoing_requests from 1.0 to 2.0.
Add warnings in rest api and @serve.deployment about these changes.

Signed-off-by: Cindy Zhang [email protected]

@zcin zcin force-pushed the pr45943 branch 3 times, most recently from 7b5e387 to 471c780 Compare June 17, 2024 21:51
@zcin zcin marked this pull request as ready for review June 18, 2024 16:05
@zcin zcin linked an issue Jun 18, 2024 that may be closed by this pull request
dashboard/modules/serve/serve_rest_api_impl.py Outdated Show resolved Hide resolved
dashboard/modules/serve/serve_rest_api_impl.py Outdated Show resolved Hide resolved
python/ray/serve/api.py Outdated Show resolved Hide resolved
@zcin zcin force-pushed the pr45943 branch 2 times, most recently from 5ad7f14 to 2111dab Compare June 18, 2024 21:22
python/ray/serve/api.py Outdated Show resolved Hide resolved
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zcin
Copy link
Contributor Author

zcin commented Jun 20, 2024

@edoakes could you help take a look when you get the chance?

@zcin zcin added the go add ONLY when ready to merge, run all tests label Jun 25, 2024
Change default for `max_ongoing_requests` from 100 to 5
Change default for `target_ongoing_requests` from 1.0 to 2.0.
Add warnings in rest api and @serve.deployment about these changes.

Signed-off-by: Cindy Zhang <[email protected]>
@edoakes edoakes merged commit c40878e into ray-project:master Jun 26, 2024
8 checks passed
GeneDer added a commit to GeneDer/ray that referenced this pull request Jul 2, 2024
GeneDer added a commit to GeneDer/ray that referenced this pull request Jul 3, 2024
edoakes pushed a commit that referenced this pull request Jul 5, 2024
…0` and doc change (#46399)

<!-- Thank you for your contribution! Please review
https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before
opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

Re: #45943 changed the default
`max_ongoing_requests` down to 5 which caused the overall rps lower as
will. This PR did two things:
1. Added a set of performance tests for `max_ongoing_requests =100`
2. Added related doc change to explicitly calling out setting up a
higher value for `max_ongoing_requests` for lightweight requests

## Related issue number

Closes metrics dropping at
https://b534fd88.us1a.app.preset.io/explore/?form_data_key=YWenQf8xEN9DHx7wmFVo3cRXYD-xoqObnK7HEC8J2Ho8FMnPCYM-d_as4EO7CG4b&dashboard_page_id=DCipe40Dxo&slice_id=1380

## 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 :(

---------

Signed-off-by: Gene Su <[email protected]>
can-anyscale added a commit that referenced this pull request Jul 10, 2024
linux://python/ray/dashboard:test_serve_dashboard has become timedout
and flaky recently (#46459);
not sure if it has anything to do with
#45943. I just increase its timed
out in this PR

Test:
- CI
- https://buildkite.com/ray-project/postmerge/builds/5358

Signed-off-by: can <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[serve] default max_concurrent_queries is too high
5 participants