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

netty:Auto adjust BDP ping frequency #9650

Merged
merged 13 commits into from
Dec 22, 2022

Conversation

larry-safran
Copy link
Contributor

@larry-safran larry-safran commented Oct 21, 2022

Only initiate a BDP ping after every X bytes of data where X is a multiple of the window size that increases when the window isn't changing.

Added a ticker to the Netty handlers so that bandwidth could be properly controlled from tests.

Fixes #8260

@larry-safran larry-safran requested a review from ejona86 October 21, 2022 22:03
@larry-safran
Copy link
Contributor Author

@ejona86 please review

* Split for loop out into its own test
* Change setDataSizeAndSincePing to set time to current time rather than 1 second (or nanosecond) previous.
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending what I have, in whatever state it happens to be.

@larry-safran
Copy link
Contributor Author

@ejona86 ping

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit concerned about whether the NettyClientStream.start() blows up in our face, but assuming it doesn't, consider the comments and LGTM.

@larry-safran larry-safran merged commit f5e8459 into grpc:master Dec 22, 2022
@larry-safran larry-safran deleted the bdp-ping-backoff branch December 22, 2022 02:00
larry-safran added a commit that referenced this pull request Jan 13, 2023
larry-safran added a commit that referenced this pull request Jan 13, 2023
larry-safran added a commit that referenced this pull request Jan 18, 2023
larry-safran added a commit that referenced this pull request Jan 19, 2023
* Revert "Revert "netty:Auto adjust BDP ping frequency (#9650)" (#9821)"

This reverts commit a2bbe84.

* Eliminate half RTT delay in sending BDP Pings when starting up.
* Eliminate delay for bdp ping when current read would push us over the threshold.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BDP PINGs are sent much more frequently than necessary
2 participants