-
Notifications
You must be signed in to change notification settings - Fork 183
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
allow configuring grpc max connection age #9657
Conversation
Is |
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
fa2c1ff
to
6526751
Compare
|
Quality Gate passedIssues Measures |
_serverMaxConnectionAgeEnv = "GRPC_MAX_CONNECTION_AGE" | ||
|
||
// same default as grpc | ||
infinity = time.Duration(math.MaxInt64) |
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.
LOL. math.MaxInt64
is NOT infinity because math.MaxInt64 + 1
is bigger.
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.
LOL, nerdy but ur correct
allow configuring grpc max connection age
We added a GRPC_MAX_CONNECTION_AGE env var that allows limiting the lifespan of connections. A closed connection triggers grpc clients to do a new DNS lookup to pick up new IPs.
see #9488
reva part in cs3org/reva#4772