-
Notifications
You must be signed in to change notification settings - Fork 289
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
retries for grabbing ec2 metadata #381
Conversation
When starting several agents in quick succession some of the agents fail to populate with the proper EC2 metadata for tags. I suspect it has something to do with grabbing IAM credentials and throttling on AWS side. Retries with some random delay should fix the problem.
Hey @davidk-zenefits - this is a good change! Thanks so much for the PR! We have a our own agent/clicommand/meta_data_get.go Line 76 in 805b277
If you're happy to update the code to use that (if you want to extend retry to add some randomness to it, then that's cool to) I'd happily merge this in and push out a stable release :) |
Cool. I'll try. |
I think I got all the errors. At least running |
Thanks @davidk-zenefits! I just merged these changes into master. I made a few tweaks: added some extra logging and moved your sleep stuff directly into our retry gear - since it's a really good idea! Which version of the agent are you currently running? I'll make sure to get a new release out in the next few days. |
Fantastic. Thanks a lot. According to agent overview page we are running |
When starting several agents in quick succession some of the agents fail to populate with the proper EC2 metadata for tags. I suspect it has something to do with grabbing IAM credentials and throttling on AWS side. Retries with some random delay should fix the problem.