-
Notifications
You must be signed in to change notification settings - Fork 385
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
storagenode/piecestore: Only limit grpc requests #3342
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, super lucky that upload had two different entry points and we only care to limit uploads. I thought this was going to be way harder and gross lol.
@zeebo I know right? I was prepared for it to be nasty as well, but it ended up being simple to limit one but not the other. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I thought this was going to be uglier as well. Good job! Thanks for renaming the variable to liveGRPCRequests
so it's a bit more clear to the next random person in here 😄
// liveGRPCRequests is a limit to the number of allowed concurrent GRPC | ||
// requests. Concurrent DRPC requests count toward the limit, but DRPC | ||
// requests are accepted regardless of the current level. | ||
liveGRPCRequests int32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't that mean this is still just liveRequests?
but it includes live drpc requests too, right? it's a counter of all live requests, regardless |
What: Remove connection limits for drpc requests. drpc requests will continue to add to the limit, and grpc requests will respect the limit, but drpc requests will continue regardless of what the value of the current requests is.
Why: With drpc in place we no longer need to limit request limits.
Please describe the tests:
Please describe the performance impact:
Code Review Checklist (to be filled out by reviewer)