Repository navigation
[Cherry-pick][Serve] allow gRPC deployment to use grpc context (#41667) - #41751
Merged
Merged
Conversation
This PR passes a grpc_context to deployments if the deployment uses it to get gRPC request related info can use to set code, details, trailing metadata, and compression. The original grpc._cython.cygrpc._ServicerContext type is not serializable, so we created a RayServegRPCContext to be able to pass to the deployment. Will follow up with doc change. --------- Signed-off-by: Gene Su <[email protected]>
Contributor
Member
Author
|
@zhe-thoughts majority of this came from added tests, feature code is only ~150 lines. There are customers asking for this feature so they can utilize our gRPC proxy feature in the production environment. I think it be the best to provide this early rather than later to help unblocking them 🙏 |
zhe-thoughts
approved these changes
Dec 8, 2023
zhe-thoughts
left a comment
Contributor
There was a problem hiding this comment.
Thanks @GeneDer , approving based on user demand.
Signed-off-by: Gene Su <[email protected]>
Collaborator
|
Echoing @GeneDer, this is to unblock a key user and the risk is low due to it primarily touching this nascent feature. |
edoakes
approved these changes
Dec 8, 2023
Signed-off-by: Gene Su <[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.
This PR passes a grpc_context to deployments if the deployment uses it to get gRPC request related info can use to set code, details, trailing metadata, and compression. The original grpc._cython.cygrpc._ServicerContext type is not serializable, so we created a RayServegRPCContext to be able to pass to the deployment. Will follow up with doc change.
Why are these changes needed?
Pick of #41667
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.