question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gRPC server connection option: MAX_CONNECTION_AGE

See original GitHub issue

grpc-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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ikhooncommented, Jun 11, 2021

Feel free to comment on this issue if it is not working as expected. 😀

1reaction
raidancampbellcommented, Jun 11, 2021

Ah, I was looking in the wrong section of the docs. I’ll have to give it a try and see if it helps

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found