Skip to content

Made timeouts exponential#640

Merged
mogren merged 7 commits intoaws:masterfrom
Zyqsempai:347-made-timeouts-exponental
Oct 29, 2019
Merged

Made timeouts exponential#640
mogren merged 7 commits intoaws:masterfrom
Zyqsempai:347-made-timeouts-exponental

Conversation

@Zyqsempai
Copy link
Copy Markdown
Contributor

Issue #347

Made timeouts exponential

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Copy Markdown
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks @Zyqsempai for the PR, but I think it would be better to use something like in this PR: #626

That library also adds jitter. The start delay and max delay is not trivial to set, but I guess we should try to keep the same maximum timeout.

@mogren
Copy link
Copy Markdown
Contributor

mogren commented Oct 8, 2019

Thanks, looks a lot cleaner, but TestSetupENINetwork fails because we use RouteReplace now instead of RouteAdd. You can run the tests locally with make docker-unit-tests to test any changes.

@Zyqsempai
Copy link
Copy Markdown
Contributor Author

@mogren Done, thanks for your time.

Copy link
Copy Markdown
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, just some minor changes left.

Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
@Zyqsempai Zyqsempai force-pushed the 347-made-timeouts-exponental branch from b16dc45 to 68571f6 Compare October 29, 2019 15:03
@Zyqsempai
Copy link
Copy Markdown
Contributor Author

@mogren Sorry for delay, I was in vacation, now I a back! PTAL

@Zyqsempai Zyqsempai force-pushed the 347-made-timeouts-exponental branch from 14f29b7 to 68571f6 Compare October 29, 2019 17:25
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Copy link
Copy Markdown
Contributor

@nckturner nckturner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Copy link
Copy Markdown
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Zyqsempai, nice cleanup!

@mogren mogren merged commit 1ee59a0 into aws:master Oct 29, 2019
mogren pushed a commit to mogren/amazon-vpc-cni-k8s that referenced this pull request Dec 15, 2019
* Made timeouts exponential using RetryNWithBackoff
* Simplified ENI network setup
* TestSetupENINetwork Fix

Signed-off-by: bpopovschi <zyqsempai@mail.ru>
jaypipes pushed a commit that referenced this pull request Dec 19, 2019
* Made timeouts exponential using RetryNWithBackoff
* Simplified ENI network setup
* TestSetupENINetwork Fix

Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants