Skip to content

[Cherry-pick][Serve] allow gRPC deployment to use grpc context (#41667) - #41751

Merged
architkulkarni merged 3 commits into
ray-project:releases/2.9.0from
GeneDer:cp-41667
Dec 9, 2023
Merged

architkulkarni merged 3 commits into
ray-project:releases/2.9.0from
GeneDer:cp-41667

Conversation

@GeneDer

@GeneDer GeneDer commented Dec 8, 2023

Copy link
Copy Markdown
Member

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

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]>
@GeneDer
GeneDer requested a review from zhe-thoughts December 8, 2023 21:14
@GeneDer GeneDer added v2.9.0-pick release-blocker P0 Issue that blocks the release labels Dec 8, 2023
@zhe-thoughts

Copy link
Copy Markdown
Contributor

@GeneDer @edoakes Big change. Could you help me understand the delta between having it in 2.9 vs. having it in 2.10?

@GeneDer

GeneDer commented Dec 8, 2023 •

Copy link
Copy Markdown
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 zhe-thoughts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @GeneDer , approving based on user demand.

Signed-off-by: Gene Su <[email protected]>
@edoakes

edoakes commented Dec 8, 2023 •

Copy link
Copy Markdown
Collaborator

Echoing @GeneDer, this is to unblock a key user and the risk is low due to it primarily touching this nascent feature.

Signed-off-by: Gene Su <[email protected]>
@architkulkarni
architkulkarni merged commit 5b98e79 into ray-project:releases/2.9.0 Dec 9, 2023
@GeneDer
GeneDer deleted the cp-41667 branch December 10, 2023 22:21
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.

4 participants