mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
add sleep 5 before exponential backoff in waitUntilVolumeAvailable
This commit is contained in:
parent
ee5d623fe6
commit
2eeb863da8
@ -225,8 +225,7 @@ const (
|
||||
createTagFactor = 2.0
|
||||
createTagSteps = 9
|
||||
|
||||
// volumeCreate* is configuration of exponential backoff for created volume to check
|
||||
// it has not been silently removed by AWS.
|
||||
// volumeCreate* is configuration of exponential backoff for created volume.
|
||||
// On a random AWS account (shared among several developers) it took 4s on
|
||||
// average, 8s max.
|
||||
volumeCreateInitialDelay = 5 * time.Second
|
||||
@ -2420,6 +2419,7 @@ func (c *Cloud) waitUntilVolumeAvailable(volumeName KubernetesVolumeID) error {
|
||||
// Unreachable code
|
||||
return err
|
||||
}
|
||||
time.Sleep(5 * time.Second)
|
||||
backoff := wait.Backoff{
|
||||
Duration: volumeCreateInitialDelay,
|
||||
Factor: volumeCreateBackoffFactor,
|
||||
|
Loading…
Reference in New Issue
Block a user