gRPC server connection option: MAX_CONNECTION_AGE
See original GitHub issuegrpc-java provides an option MAX_CONNECTION_AGE
to allow gRPC server to manage a duration of TCP connection. When a connection exceeds the MAX_CONNECTION_AGE
, the server sends GOAWAY and terminates it.
Server server = NettyServerBuilder.forPort(port)
.maxConnectionAge(MAX_CONNECTION_AGE, TimeUnit.MILLISECONDS)
.addService(...)
.build();
https://github.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md
Could armeria-grpc supoort this option?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Need to be careful when you using gRPC keepalive - Allen Ng
Using the following setting to test with. MaxConnectionAge — 10s; MaxConnectionAgeGrace — 30s. Client Side. Server Side. running the server ...
Read more >grpc.max_connection_age_ms for client config?
max_connection_age_ms is a server-side option. For documentation, see gRFC A9 Server-side Connection Management. This should work on server-side without issue.
Read more >NettyServerBuilder (grpc-all 1.51.0 API)
A builder to help simplify the construction of a Netty-based GRPC server. ... Sets a custom max connection age, connection lasting longer than...
Read more >How to configure `MAX_CONNECTION_AGE` on Python ...
1 Answer 1 ... You can use grpc.server() 's options argument: options – An optional list of key-value pairs (channel_arguments in gRPC runtime)...
Read more >Performance best practices with gRPC - Microsoft Learn
By default, most servers set this limit to 100 concurrent streams. A gRPC channel uses a single HTTP/2 connection, and concurrent calls are ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feel free to comment on this issue if it is not working as expected. 😀
Ah, I was looking in the wrong section of the docs. I’ll have to give it a try and see if it helps