From 699f18612c1a213f84c38c68bef6c35c90673462 Mon Sep 17 00:00:00 2001 From: oriAdler Date: Mon, 4 Apr 2022 18:00:55 +0300 Subject: [PATCH] Add max throttle delay to avoid exponential backoff 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. --- pkg/aws/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/aws/client.go b/pkg/aws/client.go index a2a1a5f1e6..57a85db480 100644 --- a/pkg/aws/client.go +++ b/pkg/aws/client.go @@ -692,6 +692,7 @@ func buildCustomRetryer() CustomRetryer { NumMaxRetries: 12, MinRetryDelay: 1 * time.Second, MinThrottleDelay: 5 * time.Second, + MaxThrottleDelay: 5 * time.Second, }, } }