From 98dd1336b0abae25f56c48be64f3c1f9053741e5 Mon Sep 17 00:00:00 2001 From: Ruslan Gustomiasov Date: Sat, 8 Jun 2019 20:10:05 +0200 Subject: [PATCH] rename and change aws backoff vars --- staging/src/k8s.io/legacy-cloud-providers/aws/aws.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go b/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go index 87d7c4ccc29..b2f9a0ff318 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go +++ b/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go @@ -229,9 +229,9 @@ const ( // it has not been silently removed by AWS. // On a random AWS account (shared among several developers) it took 4s on // average, 8s max. - encryptedCheckInitialDelay = 1 * time.Second - encryptedCheckFactor = 2.0 - encryptedCheckSteps = 8 + volumeCreateInitialDelay = 5 * time.Second + volumeCreateBackoffFactor = 1.2 + volumeCreateBackoffSteps = 10 // Number of node names that can be added to a filter. The AWS limit is 200 // but we are using a lower limit on purpose @@ -2421,9 +2421,9 @@ func (c *Cloud) waitUntilVolumeAvailable(volumeName KubernetesVolumeID) error { return err } backoff := wait.Backoff{ - Duration: encryptedCheckInitialDelay, - Factor: encryptedCheckFactor, - Steps: encryptedCheckSteps, + Duration: volumeCreateInitialDelay, + Factor: volumeCreateBackoffFactor, + Steps: volumeCreateBackoffSteps, } err = wait.ExponentialBackoff(backoff, func() (done bool, err error) { vol, err := disk.describeVolume()