Skip to content

Conversation

@hwhelan-CB
Copy link
Contributor

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

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Copy link

@emtammaru emtammaru left a 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.

Copy link

@ghost ghost left a 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.

@ldez ldez changed the base branch from master to v1.7 January 16, 2019 01:09
@blackey-mitek
Copy link

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.

Copy link
Contributor

@ldez ldez left a 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.

Art Abramchuk and others added 3 commits January 17, 2019 09:47
(cherry picked from commit 39605e14745b439da0e6dd009190206d66e34e65)
@ldez ldez added this to the 1.7 milestone Jan 17, 2019
@ldez ldez requested review from mmatur and removed request for a team January 18, 2019 11:32
Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldez ldez added kind/bug/fix a bug fix and removed kind/enhancement a new or improved feature. labels Jan 24, 2019
@ldez ldez mentioned this pull request Jan 30, 2019
19 tasks
@ldez ldez changed the title Cache exising task definitions to avoid rate limiting Cache existing task definitions to avoid rate limiting Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants