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

Not all EC2 instances tag themselves #480

Closed
ansoncfit opened this issue Dec 10, 2018 · 6 comments
Closed

Not all EC2 instances tag themselves #480

ansoncfit opened this issue Dec 10, 2018 · 6 comments
Assignees

Comments

@ansoncfit
Copy link
Member

After #468, workers are supposed to tag themselves. On a static site analysis, I used the EC2 console to "launch more like this" in two rounds. In the first round, I requested 99 instances and all tagged themselves. In the second round, a few minutes later, I requested 200 instances and only ~2/3 of them did.

@ansoncfit ansoncfit self-assigned this Dec 10, 2018
@abyrd
Copy link
Member

abyrd commented Dec 11, 2018

That's strange. Maybe EC2 API rate limiting?

@ansoncfit
Copy link
Member Author

Good idea, I'll look into it and consider adding a small random delay. The batches of 150 just started are exhibiting similar inconsistent behavior.

@ansoncfit
Copy link
Member Author

Starting many batches of 100 yesterday, it appeared that all instances successfully tagged themselves. I didn't see limits on tagging following the instructions at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html, but rate limiting above ~100 tagging requests at a time does appear to be a likely suspect.

@abyrd
Copy link
Member

abyrd commented Dec 13, 2018

Sounds promising. I think adding some random jitter of say 0-20 seconds (as we do with the worker polling delay) would do the job.

@ansoncfit
Copy link
Member Author

Starting a batch of 200 with a random delay of up to 20 seconds did not seem to slow things down enough. If we move the tagging operation after the R5 startup script so we don't delay users, we could try a longer delay (maybe ~4 minutes)?

ansoncfit added a commit that referenced this issue Dec 15, 2018
@ansoncfit ansoncfit mentioned this issue Dec 15, 2018
3 tasks
@ansoncfit
Copy link
Member Author

Fixed in #488, then moved to analysis-backend in conveyal/analysis-backend#203

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

No branches or pull requests

2 participants