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

v2.0: Fix broken parallelism in quic-client (backport of #2526) #3709

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 19, 2024

Fixes excessive fragmentation by TPU clients leading to a large
number of streams per conn in 'sending' state simultaneously.
This, in turn, requires excessive in-memory buffering server-side
to reassemble fragmented transactions.

  • Simplifies QuicClient::send_batch to enqueue send operations
    in sequential order
  • Removes the "max_parallel_streams" config option

The quic-client now produces an ordered fragment stream when
scheduling send operations from a single-thread.


This is an automatic backport of pull request #2526 done by [Mergify](https://mergify.com).

* Fix broken parallelism in quic-client

Fixes excessive fragmentation by TPU clients leading to a large
number of streams per conn in 'sending' state simultaneously.
This, in turn, requires excessive in-memory buffering server-side
to reassemble fragmented transactions.

- Simplifies QuicClient::send_batch to enqueue send operations
  in sequential order
- Removes the "max_parallel_streams" config option

The quic-client now produces an ordered fragment stream when
scheduling send operations from a single-thread.

* quic-client: remove outdated test

---------

Co-authored-by: Richard Patel <[email protected]>
Co-authored-by: Alessandro Decina <[email protected]>
(cherry picked from commit 76cbf1a)
@mergify mergify bot requested a review from a team as a code owner November 19, 2024 20:19
Copy link

@alessandrod alessandrod 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 approving this because it improves things. To fix the issue we'd still need to backport #3672 which I think we should do at some point soon, but let's bake that quinn version a little longer on other channels.

@alessandrod alessandrod merged commit 4f8cf99 into v2.0 Nov 21, 2024
38 checks passed
@alessandrod alessandrod deleted the mergify/bp/v2.0/pr-2526 branch November 21, 2024 01:46
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.

4 participants