Skip to content
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

Made timeouts exponential #640

Merged
merged 7 commits into from
Oct 29, 2019
Merged

Conversation

Zyqsempai
Copy link
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
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.

pkg/networkutils/network.go Outdated Show resolved Hide resolved
pkg/networkutils/network.go Outdated Show resolved Hide resolved
@mogren
Copy link
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
Contributor Author

@mogren Done, thanks for your time.

Copy link
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.

pkg/networkutils/network.go Outdated Show resolved Hide resolved
pkg/networkutils/network.go Outdated Show resolved Hide resolved
pkg/networkutils/network.go Show resolved Hide resolved
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
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
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
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