Make AWS attach/detach operations faster
Most attach/detach operations on AWS finish within 1-4seconds. By using a shorter time interval and higher exponetial factor we can shorten time taken for attach and detach to complete.
This commit is contained in:
parent
a6741ea743
commit
0e6a541036
@ -201,14 +201,13 @@ const nodeWithImpairedVolumes = "NodeWithImpairedVolumes"
|
|||||||
const (
|
const (
|
||||||
// volumeAttachmentConsecutiveErrorLimit is the number of consecutive errors we will ignore when waiting for a volume to attach/detach
|
// volumeAttachmentConsecutiveErrorLimit is the number of consecutive errors we will ignore when waiting for a volume to attach/detach
|
||||||
volumeAttachmentStatusConsecutiveErrorLimit = 10
|
volumeAttachmentStatusConsecutiveErrorLimit = 10
|
||||||
// volumeAttachmentStatus* is configuration of exponential backoff for
|
// most attach/detach operations on AWS finish within 1-4 seconds
|
||||||
// waiting for attach/detach operation to complete. Starting with 10
|
// By using 1 second starting interval with a backoff of 1.8
|
||||||
// seconds, multiplying by 1.2 with each step and taking 21 steps at maximum
|
// we get - [1, 1.8, 3.24, 5.832000000000001, 10.4976]
|
||||||
// it will time out after 31.11 minutes, which roughly corresponds to GCE
|
// in total we wait for 2601 seconds
|
||||||
// timeout (30 minutes).
|
volumeAttachmentStatusInitialDelay = 1 * time.Second
|
||||||
volumeAttachmentStatusInitialDelay = 10 * time.Second
|
volumeAttachmentStatusFactor = 1.8
|
||||||
volumeAttachmentStatusFactor = 1.2
|
volumeAttachmentStatusSteps = 13
|
||||||
volumeAttachmentStatusSteps = 21
|
|
||||||
|
|
||||||
// createTag* is configuration of exponential backoff for CreateTag call. We
|
// createTag* is configuration of exponential backoff for CreateTag call. We
|
||||||
// retry mainly because if we create an object, we cannot tag it until it is
|
// retry mainly because if we create an object, we cannot tag it until it is
|
||||||
|
Loading…
Reference in New Issue
Block a user