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
feat(quotas): Add global throughput limit #2928
feat(quotas): Add global throughput limit #2928
Changes from 68 commits
26f1235
9a36e1a
4021f9b
cc945ea
cc8c4df
c9fe40a
5ae80da
dd216c5
2737e48
1cf531a
8c081db
b9741b0
1358339
8b6a33a
25f5dd0
54c8e8e
3a8aebf
5e918d6
97951c9
baf3434
81e6a0d
e9b1533
bf07bda
70dca21
a440778
18f9a3a
7de09e6
138360b
ba47eac
f9ab69b
36ab40d
77e3874
d4af90c
61e1ee4
2ebbeab
1f753d5
afe425a
c79d2bf
511bf52
bd60cbf
412e0d4
d7fbc6d
b02f980
e5ec453
f0e95f9
00b57c6
4b53b60
ad01e38
030466b
626b47a
b79ad58
530bf09
25b4275
47f207c
4629dd2
0ccf7ac
862b306
16d7b0d
6056d49
9b89968
400b6f5
a6ca9fe
56b57ad
b8ee59a
8a8f751
a882565
dd5dbb1
7fd70c7
6d1e5cf
cd54b18
5e7f307
a76e936
e0f4cfb
72a1c10
d9170cc
a72d7c8
7d59170
9ec555a
dbf0f98
5ba7894
cf4196f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 3 in CHANGELOG.md
GitHub Actions / Changelogs
Missing changelog entry.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Can we flip this around and call the method
exceeds_limit
?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.
We need to actually implement this, use a percentage we grab from the config
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.
Implemented with a global constant for now.
Might in the future want to use some kind of moving average instead.
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.
nit: Might be just me but I associate
last_seen
with a timestamp.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.
We prefer
last_seen
because it makes it clear the value may be out of date and not in sync with Redis.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.
nit:
quota
determines the redis key, which comes before redis args, so i would put the parameter betweenclient
andquantity
.