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 allowed concurrent gRPC streams #16327

Merged
merged 5 commits into from Jul 20, 2022
Merged

Conversation

briankassouf
Copy link
Member

By default http2.Server allows for 250 concurrent streams per host. This limit can cause bottlenecks on clusters with many forwarded requests/rpcs. This changes the default to match what the gRPC library uses: MaxUint32.


// By default this is 250 which can be too small on high traffic
// clusters with many forwarded or replication gRPC connections.
MaxConcurrentStreams: math.MaxUint32,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want an opt-out feature toggle? Just worried about unforeseen consequences.

Copy link
Contributor

@raskchanky raskchanky left a comment

Choose a reason for hiding this comment

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

Looks good to me, modulo Nick's comment

@briankassouf briankassouf added this to the 1.9.8 milestone Jul 20, 2022
@briankassouf briankassouf enabled auto-merge (squash) July 20, 2022 19:23
@briankassouf briankassouf merged commit 836fd8a into main Jul 20, 2022
briankassouf added a commit that referenced this pull request Jul 20, 2022
* Increase the allowed concurrent gRPC streams

* Add a env override for the max streams setting

* Add changelog

* go fmt

* fix builds on 32bit systems
briankassouf added a commit that referenced this pull request Jul 20, 2022
* Increase the allowed concurrent gRPC streams

* Add a env override for the max streams setting

* Add changelog

* go fmt

* fix builds on 32bit systems
@briankassouf briankassouf deleted the grpc-concurrent-limit branch July 20, 2022 23:45
briankassouf added a commit that referenced this pull request Jul 20, 2022
* Increase the allowed concurrent gRPC streams

* Add a env override for the max streams setting

* Add changelog

* go fmt

* fix builds on 32bit systems

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
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.

None yet

3 participants