Closed europelee closed 1 year ago
Any update? This is crucial fix for us.
I agree.. This would be very beneficial. Any update if and when is this going to be merged?
The "standard" was introduced well after python-etcd was created, so we had to go with what was suggested in etcd's documentation at the time.
Having said that, I'd prefer not to just break compatibility for everyone else. I'll try to make this change so that current code will keep working.
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").