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

[HTTP2] Fix inconsistencies in keepalive configuration #33428

Merged
merged 7 commits into from
Jun 18, 2023

Conversation

yashykt
Copy link
Member

@yashykt yashykt commented Jun 13, 2023

Noticed some inconsistencies in our keepalive configuration -

  • Earlier, even if keepalive pings were disabled, we would be scheduling keepalive pings at an interval of INT_MAX ms.
  • We were not using g_default_client_keepalive_permit_without_calls / g_default_server_keepalive_permit_without_calls. They are both false by default but they can be overridden in grpc_chttp2_config_default_keepalive_args.

@yashykt yashykt requested a review from ctiller as a code owner June 13, 2023 21:01
@yashykt yashykt changed the title [HTTP2] Fix keepalive configuration [HTTP2] Fix inconsistencies in keepalive configuration Jun 13, 2023
@yashykt yashykt added the release notes: yes Indicates if PR needs to be in release notes label Jun 13, 2023
@ctiller
Copy link
Member

ctiller commented Jun 13, 2023

This seems like an ideal time to add tests around the expected configuration.

@yashykt
Copy link
Member Author

yashykt commented Jun 13, 2023

what kind of tests are you imagining?

@ctiller
Copy link
Member

ctiller commented Jun 13, 2023

a set of asserts that would trigger if, say, we disabled keep alives but scheduled at INT_MAX seconds regardless?
or something that verifies that g_default_client_keepalive_permit_without_calls is actually used?

@yashykt yashykt merged commit e107ff5 into grpc:master Jun 18, 2023
62 of 65 checks passed
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Jun 20, 2023
yashykt added a commit to yashykt/grpc that referenced this pull request Jun 21, 2023
yashykt added a commit that referenced this pull request Jun 21, 2023
…" (#33512)

This reverts commit e107ff5.




<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
yashykt added a commit that referenced this pull request Jun 21, 2023
yashykt added a commit that referenced this pull request Jun 30, 2023
…n ( #33428)" (#33512) (#33586)

Along with an experiment this time

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
HannahShiSFB pushed a commit to HannahShiSFB/grpc that referenced this pull request Jul 3, 2023
…n ( grpc#33428)" (grpc#33512) (grpc#33586)

Along with an experiment this time

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
yashykt added a commit that referenced this pull request Jul 5, 2023
yashykt added a commit that referenced this pull request Jul 5, 2023
…iguration ( #33428)" (#33512)" (#33599)

Reverts #33586

Looks like this has to be cherry-picked
yashykt added a commit that referenced this pull request Jul 5, 2023
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 5, 2023
…n ( grpc#33428)" (grpc#33512) (grpc#33586)

Along with an experiment this time

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 5, 2023
yashykt added a commit that referenced this pull request Jul 6, 2023
…ive configuration ( #33428)" (#33512)"" (#33601)

Reverts #33599

Needs to be cherry-picked
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 13, 2023
…33428)" (grpc#33512)

This reverts commit e107ff5.




<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 13, 2023
…n ( grpc#33428)" (grpc#33512) (grpc#33586)

Along with an experiment this time

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 13, 2023
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bloat/none imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants