Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Dynamic rate limiter #4390
Dynamic rate limiter #4390
Changes from 66 commits
0045fb7
ee44c22
68766b7
bfc7002
82abfa4
f38f142
c037475
9543764
859950e
dec1704
15da4b7
e283bfb
50d2ea4
a5194e2
bf3da77
0047dc8
d3f4bf8
c43f1a1
dc5eb2a
217cb96
bf205a4
b8293dc
27ec4c5
df989eb
6aa2e7f
f960396
7c6e5f4
806eb44
b9da952
3c409ce
3850986
88a7507
fe2955d
f46ab3f
f412f60
e634617
3caed40
564cf3e
d64ff92
c56dd9b
e91a0ee
9b152fa
2469798
2ae3371
ee46440
7d15e99
db4db37
c256fb1
98f2b66
f3dfa3d
fc62af7
33448c8
5a94697
e179473
e0ce388
e48fcec
d3b20f1
c42a921
b6fd862
bf7a9e2
d56bf0d
6d8f69a
5c381d3
0175f37
47ba914
06e4d1d
c375bbc
d99a697
9fc18e0
0bccb26
311abbd
32f1c81
6f51bfc
fe0828e
79d3f9b
e0dbb5a
7331f76
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
also add a channel from persistence.HealthSignalAggregator to rate limiter for quicker reaction?
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.
I think we do not necessarily need the fastest reaction. I want to avoid the situation where the rate limit seesaws up and down too frequently.
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.
should you maybe update
rl.rateLimiter
always here, in caserateFn
returns something different?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.
Hmm.. I thought the point of defining the keys explicitly was to avoid the json stuff? So, those constants are only used in the default value and nowhere else?
I would think if you're going to define string constants for the map keys, you should use them to read the map