-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Updated error responses around rate limiting to be more descriptive #4972
base: master
Are you sure you want to change the base?
Conversation
Waiting on a stable master, converting PR to draft till then :) |
@@ -68,11 +68,11 @@ object Messages { | |||
|
|||
/** Standard message for too many activation requests within a rolling time window. */ | |||
def tooManyRequests(count: Int, allowed: Int) = | |||
s"Too many requests in the last minute (count: $count, allowed: $allowed)." | |||
s"Too many requests in the last minute (currently running: $count, allowed per minute: $allowed)." |
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.
This shouldn't be currently running
as it's just a per minute throttle limit, not concurrency.
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.
Reverted in dc3ec0f
7e61b7c
to
c32ec0d
Compare
c32ec0d
to
4f08b4c
Compare
@dgrove-oss @bdoyle0182 @mrutkows tagging folks for review! Note: Travis timed out running |
4f08b4c
to
75eb1ae
Compare
Is there a way to also show the discrete # (perhaps use the same internal config. value the controller uses) to be as descriptive as possible? That is fully address Dave's suggestion in the issue, i.e., "or simply show the total allowed over all the controllers (in this case, 5 controllers (5*240=1200)". I suspect operators would love to be reminded of the configured limits when a user presents them with this error... |
75eb1ae
to
43cfb90
Compare
I agree I think this is probably the biggest thing we want as to what's misleading. I'm not sure if the current clustering can actually support something like this though or not. |
43cfb90
to
6f27606
Compare
Team, unfortunately this is my first time working with Scala.. I tried to follow along the code but wasn't entirely sure. Are we referring to leverage |
@@ -72,7 +72,7 @@ object Messages { | |||
|
|||
/** Standard message for too many concurrent activation requests within a time window. */ | |||
def tooManyConcurrentRequests(count: Int, allowed: Int) = | |||
s"Too many concurrent requests in flight (count: $count, allowed: $allowed)." | |||
s"Too many concurrent requests in flight (currently running: $count, allowed per controller: $allowed)." |
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.
s"Too many concurrent requests in flight (currently running: $count, allowed per controller: $allowed)." | |
s"Too many concurrent requests (count in window: $count, allowed per controller: $allowed)." |
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.
Suggest a change to address @bdoyle0182 's comment
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.
@dgrove-oss @bdoyle0182 @mrutkows suggested a change in a separate PR linked below to keep it clean. I'll just close the other PR if I'm on the wrong track ;)
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.
@rabbah - do you have any thoughts? This is a part of the controller I don't know very well.
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.
LGTM.
As noted by @dgrove-oss and @bdoyle0182 each controller lacks total knowledge about the activation counts per namespace. This message will even vary per controller depending on which services the request. So the "currently running" count is for the specific controller that was assigned the activation. |
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.
LGTM... achieves immediacy of ack. multiple controllers.
So, close the linked PR right? |
I have little idea about the history of this PR. |
Description
Addressing issue #4798. Minor update.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: