Skip to content

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