-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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] Remove old grpc code #39863
[Serve] Remove old grpc code #39863
Conversation
Signed-off-by: Sihan Wang <[email protected]>
try: | ||
# Depending on whether RAY_USE_TLS is on, `add_port_to_grpc_server` | ||
# can create a secure or insecure channel | ||
self.grpc_port = add_port_to_grpc_server(self.server, address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GeneDer do we support TLS (secure channel) in the current grpc proxy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it's just using unsecured port https://github.com/ray-project/ray/blob/master/python/ray/serve/_private/proxy.py#L1617 But adding support should be pretty easy.
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
ada850a
to
b134ce7
Compare
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
d338b96
to
1bb9011
Compare
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
@@ -151,49 +147,41 @@ def _start_controller( | |||
"max_concurrency": CONTROLLER_MAX_CONCURRENCY, | |||
} | |||
|
|||
if FLAG_DISABLE_PROXY: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no logic change, only remove the if case
python/ray/serve/_private/proxy.py
Outdated
@@ -1605,7 +1606,8 @@ async def run_grpc_server(self): | |||
grpc_server = create_serve_grpc_server( | |||
service_handler_factory=self.grpc_proxy.service_handler_factory, | |||
) | |||
grpc_server.add_insecure_port(f"[::]:{self.grpc_port}") | |||
|
|||
add_port_to_grpc_server(grpc_server, f"[::]:{self.grpc_port}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TLS support
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
Signed-off-by: Sihan Wang <[email protected]>
@sihanwang41 could you please separate (7) out into its own PR so this is purely removing the existing stuff? |
Signed-off-by: Sihan Wang <[email protected]>
done |
1. Remove is_driver_deployment API 2. Remove the grpc driver 3. Remove driver deployment. 4. Rmove disable_httpproxy flag 5. Remove related unit tests 6. Remove old gRPC proto schema Signed-off-by: Victor <[email protected]>
Why are these changes needed?
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.