-
Notifications
You must be signed in to change notification settings - Fork 74
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
Comments
That's strange. Maybe EC2 API rate limiting? |
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. |
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. |
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. |
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)? |
Fixed in #488, then moved to analysis-backend in conveyal/analysis-backend#203 |
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.
The text was updated successfully, but these errors were encountered: