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

set default grpc values #5922

Merged
merged 1 commit into from
Mar 16, 2020
Merged

Conversation

inolddays
Copy link
Contributor

1.set grpc_keepalive_time to 10 seconds
2.set grpc_keepalive_timeout to 10 seconds
These settings will help to avoid the situation which query will hang there when pod or Bare metal is broken.

Signed-off-by: JohnnyThree [email protected]

2.set grpc_keepalive_timeout to 10 seconds
These settings will help to avoid the situation which query will hang there when pod or Bare metal is broken.

Signed-off-by: JohnnyThree <[email protected]>
@inolddays inolddays requested a review from sougou as a code owner March 16, 2020 02:41
@morgo
Copy link
Contributor

morgo commented Mar 16, 2020

This was previously reviewed here: #5478 -- we are good to merge.

@morgo morgo self-requested a review March 16, 2020 15:23
@morgo morgo merged commit bc893c7 into vitessio:master Mar 16, 2020
@deepthi deepthi changed the title set defalut grpc values set default grpc values Mar 16, 2020
@rafael
Copy link
Member

rafael commented Aug 11, 2020

Unfortunately this introduces a somewhat odd behavior. Not sure if we should consider it a bug, but with these defaults for idle connections, we will be closing them in an incorrect way due to ping strikes. This is because, the defaults from this PR are not compatible with the defaults here.

To make this clear with an example, the current settings of (grpc_keepalive_time=10s, grpc_keepalive_timeout=10s, grpc_server_keepalive_enforcement_policy_min_time=5min) will result in the following behavior:

  • Client will try to send 6 pings in the first minute.
  • Server will close that connection because the client is not respecting the keepalive enforcement policy.

I wonder what is the best approach here?

  • Revert this change and think about better defaults ?
  • Set up grpc_server_keepalive_enforcement_policy_min_time to 10 seconds as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants