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

enable skyDNS round robin A/AAAA records #167

Closed
wants to merge 2 commits into from

Conversation

wu8685
Copy link

@wu8685 wu8685 commented Nov 20, 2017

After issue #116 fixed, I hope we can enable skyDNS round robin to support load balance for headless service.

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 20, 2017
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 20, 2017
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 13, 2018
@MrHohn
Copy link
Member

MrHohn commented Mar 25, 2018

/ok-to-test
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 25, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 5, 2018
@wu8685
Copy link
Author

wu8685 commented Jul 5, 2018

Shall we consider this PR to enable round robin in order to support LB for multiple pods behind a headless service ?

@thockin
Copy link
Member

thockin commented Jul 6, 2018

What is the end result of this? If you have a headless service with 3 endpoints, every query should get all 3 addresses, no? Does this just shuffle them?

@miekg
Copy link

miekg commented Jul 6, 2018 via email

@wu8685
Copy link
Author

wu8685 commented Jul 6, 2018

Yes, it dose shuffle:)

However, it is not enough.
When we use the dns only has shuffle to LB the headless svc, the backend server does not be hit equally.

I have done some test to count the backend server hits. The result is listed below:

// enable RR
ip: 10.212.151.227, count: 530
ip: 10.212.151.218, count: 470

// disable RR
ip: 10.212.151.218, count: 873
ip: 10.212.151.227, count: 127

@miekg
Copy link

miekg commented Jul 6, 2018 via email

@wu8685
Copy link
Author

wu8685 commented Jul 6, 2018

Is it a good ideal to export the round-robin as a kube-dns configuration ?
Users can decide themselves.

@thockin
Copy link
Member

thockin commented Jul 6, 2018 via email

@miekg
Copy link

miekg commented Jul 6, 2018 via email

@thockin
Copy link
Member

thockin commented Jul 6, 2018 via email

@wu8685
Copy link
Author

wu8685 commented Jul 7, 2018

I have used a forked kube-dns with the RR enabled in my k8s environment.
It is ok to consider this PR till there is a release.

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 6, 2018
@k8s-ci-robot k8s-ci-robot added the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Aug 6, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this PR.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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/test-infra repository.

@bboreham
Copy link
Contributor

Came across this by accident and puzzled to see no mention of the "happy eyeballs" algorithm which defeats round-robin via DNS.

https://daniel.haxx.se/blog/2012/01/03/getaddrinfo-with-round-robin-dns-and-happy-eyeballs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants