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

feat: randomise startup #2417

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Conversation

elblivion
Copy link
Contributor

Description

We run multiple Kubernetes clusters in our production AWS account, when a configuration change is made to external-dns simultaneously we see a lot of throttling from the AWS Route53 API.

This mitigates the issue by introducing a randomised wait on startup. This mitigates rather than solves folks' issues with AWS Route63 rate limits, but might alleviate the pain when running multiple external-dns instances in the same account as we do.

Fixes #ISSUE

Checklist

  • Unit tests updated
  • End user documentation updated

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 5, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @elblivion!

It looks like this is your first PR to kubernetes-sigs/external-dns 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/external-dns has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 5, 2021
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 5, 2021
@elblivion
Copy link
Contributor Author

/assign @njuettner

@Raffo
Copy link
Contributor

Raffo commented Nov 7, 2021

What about providing documentation on how to do this with an init container? It would have the same effect and we wouldn't need to modify the code of the project.

main.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 24, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 24, 2021
@elblivion
Copy link
Contributor Author

Hi @Raffo! I updated the change so it's adding to the docs instead.

Copy link
Contributor

@Raffo Raffo left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 2, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elblivion, Raffo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 2, 2021
@k8s-ci-robot k8s-ci-robot merged commit 1b57fd7 into kubernetes-sigs:master Dec 2, 2021
@elblivion elblivion deleted the random-wait branch December 2, 2021 14:54
@dudicoco
Copy link

@elblivion what is the benefit of running multiple pods of external-dns?
They would do the exact same job and would probably conflict with each other, or is the use case here is to have a different deployments with different configuration?

@elblivion
Copy link
Contributor Author

@dudicoco this is not for multiple instances on the same Deployment, rather on multiple clusters in the same AWS account. I see now this isn't clearly explained in the update. :-/

@dudicoco
Copy link

@elblivion what is the advantage of running multiple pods in one deployment? I don't think that is best practice per my previous comment.

@johanneswuerbach
Copy link

johanneswuerbach commented Dec 13, 2021

I'm a college of @elblivion and I'll try to explain it in my words 😄 : We are running multiple k8s clusters in the same AWS account, but only one pod per k8s cluster. Nevertheless operations like an external-dns version update will roll all those pods at the same time causing us to hit rate-limit, so this change is mitigating this issue. Does that make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants