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

Increase EC2 instance metadata retry count #25797

Merged
merged 2 commits into from Nov 2, 2018

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Nov 2, 2018

This will configure the AWS CLI and Ruby SDKs to increase the instance metadata retry count to 30 (from the default 1), in order to work-around recently-observed issues with instance-profile metadata retrieval timing out on r4.8xlarge instances.

Because the Ruby SDK does not support setting this variable from the global configuration like the CLI does, I've added some glue code in our existing AWS-credentials initializer to force the configuration to be loaded from the same place.

Translates AWS-CLI config `metadata_service_num_attempts` to Ruby SDK config.
@wjordan wjordan changed the title Instace EC2 instance metadata retry count Instance EC2 instance metadata retry count Nov 2, 2018
@wjordan wjordan changed the title Instance EC2 instance metadata retry count Increase EC2 instance metadata retry count Nov 2, 2018
@wjordan
Copy link
Contributor Author

wjordan commented Nov 2, 2018

I've reasonably manually tested this locally, merging now to unblock deploy.

@wjordan wjordan merged commit 7bf1613 into staging Nov 2, 2018
@wjordan wjordan deleted the ec2_instance_metadata_retry branch November 2, 2018 20: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.

None yet

1 participant