You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/01/14 01:14:58 UTC

[GitHub] kocolosk opened a new issue #1108: Query DNS to automatically discover cluster peers

kocolosk opened a new issue #1108: Query DNS to automatically discover cluster peers
URL: https://github.com/apache/couchdb/issues/1108
 
 
   We can streamline cluster setup by querying DNS for an SRV record containing the hostnames of other cluster members. Service records are defined in [RFC 2782](https://www.ietf.org/rfc/rfc2782.txt) for this purpose but this is not a strictly academic exercise. As a practical example Kubernetes will create SRV records for members of a StatefulSet. I created a sidecar container that uses those SRV records to automatically join up the members of a StatefulSet here:
   
   https://github.com/kocolosk/couchdb-statefulset-assembler
   
   I think it would be interesting to push that logic down into mem3 directly. I'm envisioning a system that can be configured like so
   
   ```
   [mem3]
   use_dns_service_discovery = true
   service_record_name = _couchdb._tcp.example.net
   ```
   
   If a user omits the `service_record_name` CouchDB would attempt to generate the appropriate record for the query by prepending `_couchdb._tcp.` to the DNS domain name portion of the host / VM / container FQDN.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services