8000 [serve] Handle request with Semaphore by landscapepainter · Pull Request #54019 · ray-project/ray · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[serve] Handle request with Semaphore #54019

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

Merged

Conversation

landscapepainter
Copy link
Contributor
@landscapepainter landscapepainter commented Jun 23, 2025

This PR updates how the logic on determining if the request can be currently handled or not with Semaphore and number of ongoing requests.

@landscapepainter landscapepainter requested a review from a team as a code owner June 23, 2025 21:55
@landscapepainter landscapepainter force-pushed the handle-request-with-semaphore branch from f50a3c0 to 84a4f9e Compare June 23, 2025 22:05
@ok-scale
Copy link
Contributor

Mind adding some description on what's the goal of the PR?

@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label Jun 23, 2025
@@ -354,6 +364,7 @@ def __init__(
self._component_id = self._replica_id.unique_id
self._configure_logger_and_profilers(self._deployment_config.logging_config)
self._event_loop = get_or_create_event_loop()
self._num_queued_requests = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

self._num_queued_requests is not required and can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@abrarsheikh resolved at a035ca3

Signed-off-by: doyoung <doyoung@anyscale.com>
Signed-off-by: doyoung <doyoung@anyscale.com>
Signed-off-by: doyoung <doyoung@anyscale.com>
Signed-off-by: doyoung <doyoung@anyscale.com>
@landscapepainter landscapepainter force-pushed the handle-request-with-semaphore branch from ce65881 to a035ca3 Compare June 23, 2025 22:57
@zcin zcin merged commit 8a8b18d into ray-project:master Jun 24, 2025
5 checks passed
minerharry pushed a commit to minerharry/ray that referenced this pull request Jun 27, 2025
This PR updates how the logic on determining if the request can be
currently handled or not with Semaphore and number of ongoing requests.

---------

Signed-off-by: doyoung <doyoung@anyscale.com>
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.

4 participants
0