-
Notifications
You must be signed in to change notification settings - Fork 5k
feat: add rate limiter for alibaba cloud acr adapter #21953
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
Conversation
34a2a32 to
7a6c37e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21953 +/- ##
==========================================
+ Coverage 45.36% 46.49% +1.12%
==========================================
Files 244 253 +9
Lines 13333 14238 +905
Branches 2719 2925 +206
==========================================
+ Hits 6049 6620 +571
- Misses 6983 7263 +280
- Partials 301 355 +54
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
I suggest the |
0a76d2d to
bcee0d1
Compare
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
bf35cdb to
3899f1b
Compare
|
@wy65701436 PTAL |
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
| var envTcrQPSLimit, _ = strconv.Atoi(os.Getenv("TCR_QPS_LIMIT")) | ||
| if envTcrQPSLimit > 1 && envTcrQPSLimit < tcrQPSLimit { | ||
| tcrQPSLimit = envTcrQPSLimit | ||
| var envTcrQPSLimit, _ = strconv.Atoi(os.Getenv("REG_ADAPTER_TCR_QPS_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.
@kofj Please take a look, because as this refactor, the env key of rate limit for TCR has been changed.
Signed-off-by: njucjc <[email protected]>
Signed-off-by: njucjc <[email protected]>
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Add rate limiter for Alibaba Cloud ACR adapter
Please indicate you've done the following: