Skip to content

Commit

Permalink
Add max throttle delay to avoid exponential backoff
Browse files Browse the repository at this point in the history
AWS SDK uses exponential backoff to wiat longer between retries for consecutive error responses.
Because exponential backoff grows quickly, we are adding a maximum delay interval.
  • Loading branch information
oriAdler committed Apr 4, 2022
1 parent 5a0eb08 commit 699f186
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/aws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ func buildCustomRetryer() CustomRetryer {
NumMaxRetries: 12,
MinRetryDelay: 1 * time.Second,
MinThrottleDelay: 5 * time.Second,
MaxThrottleDelay: 5 * time.Second,
},
}
}

0 comments on commit 699f186

Please sign in to comment.