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

[BREAKING] Add concurrency limit to GRPC #627

Merged

Conversation

chrisstaite-menlo
Copy link
Collaborator

@chrisstaite-menlo chrisstaite-menlo commented Jan 24, 2024

Description

Currently we apply no concurrency limits for GRPC calls to GrpcStore or GrpcScheduler. This can cause issues for a heavily loaded upstream service that will start to build up reset streams and break.

This change modifies the configuration to have configuration per endpoint and adds an optional configuration to allow for setting a limit to the upstream concurrency.

Fixes #320

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Local cluster.

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

@chrisstaite-menlo chrisstaite-menlo requested review from allada and aaronmondal and removed request for allada January 24, 2024 10:30
Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nativelink-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 10:34am

Currently we apply no concurrency limits for GRPC calls to GrpcStore
or GrpcScheduler.  This can cause issues for a heavily loaded upstream
service that will start to build up reset streams and break.

This change modifies the configuration to have configuration per endpoint
and adds an optional configuration to allow for setting a limit to the
upstream concurrency.
Copy link
Member

@adam-singer adam-singer left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 9 of 9 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 2 of 1 LGTMs obtained

@chrisstaite-menlo
Copy link
Collaborator Author

I wasn't sure if this required a documentation change, or where said documentation is?

@chrisstaite-menlo chrisstaite-menlo merged commit b47f39b into TraceMachina:main Jan 26, 2024
22 checks passed
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.

Gracefully handle GoAway
3 participants