-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🏃clusterctl: add retries to clustectl move #2776
🏃clusterctl: add retries to clustectl move #2776
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
func newConnectBackoff() wait.Backoff { | ||
// Return a exponential backoff configuration which returns durations for a total time of ~15s. | ||
// Example: 0, .25s, .6s, 1.2, 2.1s, 3.4s, 5.5s, 8s, 12s | ||
// Jitter is added as a random fraction of the duration multiplied by the jitter factor. | ||
return wait.Backoff{ | ||
Duration: 250 * time.Millisecond, | ||
Factor: 1.5, | ||
Steps: 9, | ||
Jitter: 0.1, | ||
} | ||
} | ||
|
||
// newReadBackoff creates a new API Machinery backoff parameter set suitable for use with clusterctl read operations. | ||
func newReadBackoff() wait.Backoff { | ||
// Return a exponential backoff configuration which returns durations for a total time of ~15s. | ||
// Example: 0, .25s, .6s, 1.2, 2.1s, 3.4s, 5.5s, 8s, 12s | ||
// Jitter is added as a random fraction of the duration multiplied by the jitter factor. | ||
return wait.Backoff{ | ||
Duration: 250 * time.Millisecond, | ||
Factor: 1.5, | ||
Steps: 9, | ||
Jitter: 0.1, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two seem to have effectively the same values, is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I do expect some tuning here.
@vincepri comment addressed (in a separated commit for easier review) |
/lgtm |
/hold |
b56f297
to
b8026b3
Compare
/hold cancel |
/lgtm |
/milestone v0.3.3 |
What this PR does / why we need it:
This PR add some more retries to clusterctl. More specifically
/assign @vincepri
/assign @wfernandes