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] Config Serve's gRPC proxy to allow large payload #43114

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

GeneDer
Copy link
Contributor

@GeneDer GeneDer commented Feb 12, 2024

Why are these changes needed?

A user reported a bug unable to send large payloads with Serve's gRPC proxy. This PR configs Serve's gRPC proxy ] to allow the clients to setup larger message limits. Also, add a test to ensure this case will be caught in the future.

Related issue number

Closes #43109

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 <e870252314@gmail.com>
@GeneDer GeneDer added P0 Issues that should be fixed in short order ray 2.10 labels Feb 12, 2024
@GeneDer GeneDer requested a review from a team February 12, 2024 20:25
@@ -61,7 +63,7 @@ def create_serve_grpc_server(service_handler_factory):
thread_pool=None,
generic_handlers=(),
interceptors=(),
options=(),
options=GRPC_OPTIONS,
Copy link
Contributor

Choose a reason for hiding this comment

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

what are the options supported here? are we sure we want to share the configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a whole list of options that Ray currently supported

GRPC_OPTIONS = [
But good point let me make a Serve specific ones that's configurable as well. Will start with just the message size related ones.

Signed-off-by: Gene Su <e870252314@gmail.com>
@GeneDer GeneDer changed the title [Serve] Config Serve's gRPC proxy with Ray's gRPC options [Serve] Config Serve's gRPC proxy to allow large payload Feb 12, 2024
@edoakes edoakes merged commit 018d978 into ray-project:master Feb 12, 2024
9 checks passed
@edoakes
Copy link
Contributor

edoakes commented Feb 12, 2024

In the future such things can probably get lumped into some field in the proxy grpc_options. But looks good for now

@GeneDer GeneDer deleted the fix-grpc-options branch February 12, 2024 23:47
tterrysun pushed a commit to tterrysun/ray that referenced this pull request Feb 14, 2024
…#43114)

---------

Signed-off-by: Gene Su <e870252314@gmail.com>
Signed-off-by: tterrysun <terry@anyscale.com>
kevin85421 pushed a commit to kevin85421/ray that referenced this pull request Feb 17, 2024
…#43114)

---------

Signed-off-by: Gene Su <e870252314@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Issues that should be fixed in short order ray 2.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Serve] gRPC proxy server is not respecting Ray's gRPC options
2 participants