Skip to content
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

Increase the client idle timeout, remove the default server idle timeout #968

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Sep 17, 2020

Motivation:

We usually follow the gRPC core library for default values for various
configuration settings. However, the gRPC core library documentation
around connection idle timeouts is inconsistent at best. It suggests
that both client and server will idle connections after 5 minutes (by
default).

Other documentation suggests that the client will idle connections after
30 minutes by default and that the server will never shed idle
connections by default. The code in gRPC core library mostly agrees with
these values. The exception is for the client where an as yet unresolved
bug has led to the client idle timeout being disabled by default.

Modifications:

  • Increase the default client idle timeout to 30 minutes
  • Change the server default idle timeout to indefinite

Result:

Our default configuration is closer to the gRPC core lib.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Sep 17, 2020
Motivation:

We usually follow the gRPC core library for default values for various
configuration settings. However, the gRPC core library documentation
around connection idle timeouts is inconsistent at best. It suggests
that both client and server will idle connections after 5 minutes (by
default).

Other documentation suggests that the client will idle connections after
30 minutes by default and that the server will never shed idle
connections by default. The code in gRPC core library mostly agrees with
these values. The exception is for the client where an as yet unresolved
bug has led to the client idle timeout being disabled by default.

Modifications:

- Increase the default client idle timeout to 30 minutes
- Change the server default idle timeout to indefinite

Result:

Our default configuration is closer to the gRPC core lib.
@glbrntt glbrntt force-pushed the gb-default-idle-timeouts branch from 205132c to f236a68 Compare September 17, 2020 12:57
@glbrntt glbrntt merged commit 5c73246 into grpc:main Sep 17, 2020
@glbrntt glbrntt deleted the gb-default-idle-timeouts branch September 17, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants