-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
added sleep time between paging ListResourceRecordSet #4611
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @oferzern! |
Hi @oferzern. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/easycla |
1 similar comment
/easycla |
🤔 I'm wondering, why can't you use |
Hi @mloiseleur Maybe I'm missing something? |
There are already many parameters in external-dns. So, wdyt about finding why ListResourceRecordSets is not using |
Because as I see it the two calls (hostedZone and listResource) configs should be different. But with records - there are new services listing every few minutes, so I believe that it is by design that the ListResourceRecordSets is not affected by the interval flag. Does that make sense? |
I'm definitely not a fan of having a sleep, it's always a hack when we rely on something like this. I think either extending the current interval implementation or finding an entirely different solution would be better. |
@Raffo I agree that it's not the best to have a sleep. But even after implementing a new interval for querying ListResourceRecordSets (for ex. PR #4597 ), there would be multiple calls immediately (num of records/300), causing the rate limit again. If there's more elegant idea / logic, I'd love to hear and I'll work on it. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
We won't add a sleep time in the controller. |
@mloiseleur: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Description
Added a paging interval between AWS ListResourceRecordSet calls.
This is a major issue for places who work with N clusters over a single AWS Route 53 Account - the paging of a few K's of records make the rate limit to hit every few seconds.
With this update I've added a new flag for AWS Paging Interval - this will allow a better control over rate limits for the ListResourceRecordSet, as nothing is currently exists to mitigate rate limit issues caused by this call (as for ListHostedZones there are a few).
Note: first time here, would love any feedback :)
Checklist