-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cache existing task definitions to avoid rate limiting #4177
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
Cache existing task definitions to avoid rate limiting #4177
Conversation
emtammaru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are having the exact same issue with the rate-limiting due to multiple traefik instances in different environments using the same AWS account with shared API limits. This would help us tremendously -- was planning to do the same exact optimization here.
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really needed and would help tremendously.
|
We have grown our usage of Traefik within AWS and it appears that we have hit this limitation as well.\ with several environments in an account each with several traefik instances we are hitting the API rate limiting constantly. The logic in the original implementation abuses the AWS describe task api at any reasonable scale. This request addresses much of it by reducing duplication. Might also want a delay/back off when receiving 429 for describe task. |
ldez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late answer.
mmatur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ldez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
juliens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Stores existing task definitions to avoid rate limiting of the AWS describeTask API. If there is an existing definition, use instead of making another API call.
Motivation
Deployments taking hours instead of minutes. Due to using multiple instances of Traefik, each making frequent desribeTask API calls, and quickly hitting AWS's rate limit.
More
Additional Notes