Skip to content
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

aws: add rate_limiter_capacity to configure client-side rate limits #3497

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

stanhu
Copy link
Contributor

@stanhu stanhu commented Oct 9, 2024

Issuing many S3 uploads in quick succession causes the following error:

operation error S3: PutObject, failed to get rate limit token, retry quota exceeded, 0 available, 5 requested                  

By default, this rate limit is disabled to restore the same behavior as SDK v1. If rate_limiter_capacity is set, then client-side rate limits will take effect.

Closes #3496

aws/aws.go Outdated Show resolved Hide resolved
@stanhu stanhu force-pushed the sh-disable-aws-client-side-ratelimits branch from a54e8c8 to 9593ec5 Compare October 10, 2024 02:00
@stanhu stanhu changed the title aws: disable client-side rate limiting by default aws: add rate_limiter_capacity to configure client-side rate limits Oct 10, 2024
@stanhu stanhu force-pushed the sh-disable-aws-client-side-ratelimits branch from 9593ec5 to 60a130a Compare October 10, 2024 02:06
Issuing many S3 uploads in quick succession causes the following
error:

operation error S3: PutObject, failed to get rate limit token, retry quota exceeded, 0 available, 5 requested

By default, this rate limit is disabled to restore the same behavior
as SDK v1. If `rate_limiter_capacity` is set, then client-side rate
limits will take effect.

Closes google#3496
@stanhu stanhu force-pushed the sh-disable-aws-client-side-ratelimits branch from 60a130a to 652c9d3 Compare October 10, 2024 02:11
@stanhu stanhu requested a review from vangent October 10, 2024 02:18
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.76%. Comparing base (bbdd0b3) to head (652c9d3).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
aws/aws.go 85.71% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3497      +/-   ##
==========================================
+ Coverage   73.24%   73.76%   +0.52%     
==========================================
  Files         113      113              
  Lines       15019    15317     +298     
==========================================
+ Hits        11000    11299     +299     
- Misses       3257     3258       +1     
+ Partials      762      760       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vangent vangent merged commit 0bc0788 into google:master Oct 10, 2024
6 checks passed
gitlab-runner-bot pushed a commit to gitlabhq/gitlab-runner that referenced this pull request Oct 11, 2024
This commit bumps the version of gocloud.dev to disable AWS
client-side rate limiting if `rate_limiter_capacity` is not specified
(google/go-cloud#3497). Gitaly users ran into
these limits when backing files up to S3
(https://gitlab.com/gitlab-org/gitaly/-/issues/6417).

This likely won't be an issue for GitLab Runner since a new client is
created each time a cache file is uploaded, but just in case let's
update.

Changelog: fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws: disable rate limits by default with AWS
2 participants