Skip to content

Add a class implementing DNS Discovery #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add a class implementing DNS Discovery #5

wants to merge 1 commit into from

Conversation

legoktm
Copy link
Contributor

@legoktm legoktm commented Mar 6, 2017

etcd supports using SRV records to help clients discover the etcd
cluster:
https://coreos.com/etcd/docs/latest/v2/clustering.html#dns-discovery.

This implements a basic class to get a list of servers in the cluster,
and a helper function to pick one in accordance with RFC 2782.

I tried to follow the existing code style, but might have missed something. We are currently evaluating and planning to use etcd for configuring parts of MediaWiki on Wikimedia wikis, and one of our requirements is being able to discover individual etcd servers using the DNS discovery. And while this doesn't need to be part of this library, I think it would make a nice addition.

etcd supports using SRV records to help clients discover the etcd
cluster:
<https://coreos.com/etcd/docs/latest/v2/clustering.html#dns-discovery>.

This implements a basic class to get a list of servers in the cluster,
and a helper function to pick one in accordance with RFC 2782.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant