You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for gRPC max connection age configuration (#3121)
* Add support for gRPC max connection age configuration
* Add separate gRPC connection age configurations for Inference and Management endpoints
* Fix configuration parsing and default value
* Link docs for gRPC max connection age configuration
* fix spellcheck
---------
Co-authored-by: Matthias Reso <13337103+mreso@users.noreply.github.com>
### Configure TorchServe gRPC listening addresses, ports and max connection age
97
97
The inference gRPC API is listening on port 7070, and the management gRPC API is listening on port 7071 on localhost by default.
98
98
99
99
To configure different addresses use following properties
@@ -106,7 +106,15 @@ To configure different ports use following properties
106
106
*`grpc_inference_port`: Inference gRPC API binding port. Default: 7070
107
107
*`grpc_management_port`: management gRPC API binding port. Default: 7071
108
108
109
-
Here are a couple of examples:
109
+
To configure [max connection age](https://grpc.github.io/grpc-java/javadoc/io/grpc/netty/NettyServerBuilder.html#maxConnectionAge(long,java.util.concurrent.TimeUnit)) (milliseconds)
110
+
111
+
*`grpc_inference_max_connection_age_ms`: Inference gRPC max connection age. Default: Infinite
112
+
*`grpc_management_max_connection_age_ms`: Management gRPC max connection age. Default: Infinite
113
+
114
+
To configure [max connection age grace](https://grpc.github.io/grpc-java/javadoc/io/grpc/netty/NettyServerBuilder.html#maxConnectionAgeGrace(long,java.util.concurrent.TimeUnit)) (milliseconds)
115
+
116
+
*`grpc_inference_max_connection_age_grace_ms`: Inference gRPC max connection age grace. Default: Infinite
117
+
*`grpc_management_max_connection_age_grace_ms`: Management gRPC max connection age grace. Default: Infinite
0 commit comments