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

Fix imds retry #58

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

sethAmazon
Copy link

Description:
ec2 and ecs treats retries for getting host name differently
ec2 will try the method 5 times = about 2 minutes
ecs will try the underlying endpoints. Get token 5 times then call ec2 metadata then token 5 times then ec2 metadata ... = about 12 minutes
This was causing us to increase the max delay from 4 minutes to 24 minutes

Link to tracking Issue:
N/A

Testing:
Tested retry with context in private repo retry code. This is copied code.

Documentation:
N/A

@sethAmazon sethAmazon merged commit 7567204 into amazon-contributing:aws-cwa-dev Jul 24, 2023
82 checks passed
@sethAmazon sethAmazon deleted the fix-imds-retry branch July 24, 2023 16:21
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