python-etcd icon indicating copy to clipboard operation
python-etcd copied to clipboard

DNS SRV support problem---srv_name convention

Open europelee opened this issue 7 years ago • 1 comments

code in client.py: def _discover(self, domain): srv_name = "_etcd._tcp.{}".format(domain) ... ... please refer to https://coreos.com/etcd/docs/latest/v2/clustering.html#dns-discovery there exists two types of DNS discovery configuration convention: like _etcd-server._tcp.example.com, _etcd-client._tcp.example.com for etcd client, we need discovering the etcd cluster, so we use _etcd-client._tcp.example.com. It is better that use _etcd-client._tcp.{} instead of _etcd._tcp.{}, or "_etcd-client._tcp" can be used as optional input paramter of client(i.e default prefix dns srv record is "_etcd._tcp").

europelee avatar Dec 18 '17 14:12 europelee

this project look like a rotten corps.

zloyded avatar Mar 10 '21 11:03 zloyded