akka-management icon indicating copy to clipboard operation
akka-management copied to clipboard

ClusterBootstap with akka-dns defaults to SRV records without falling back to A records

Open herzrasen opened this issue 6 years ago • 4 comments

Hi,

it would be great to (at least) clarify in the docs that by not overwriting the default values of akka.akka.management.cluster.bootstrap.contact-point-discovery.port-name and akka.akka.management.cluster.bootstrap.contact-point-discovery.protocol with "" the DNS mechanism defaults to resolving SRV records, without falling back to A records. It took me several hours to figure out why ClusterBootstrap suddenly stops working. Is there a cause why no A record resolution is tried when no SRV records are found?

herzrasen avatar Nov 09 '18 09:11 herzrasen

:+1: to documenting this, currently only in the reference.conf: https://github.com/akka/akka-management/blob/master/cluster-bootstrap/src/main/resources/reference.conf

chbatey avatar Dec 04 '18 15:12 chbatey

Trying both would improve first user experience but not sure there is a prod use case for using both for bootstrap?

chbatey avatar Dec 04 '18 15:12 chbatey

I came across this because Docker Swarm's internal DNS doesn't support SRV records and we had to override the settings to get our cluster to bootstrap.

herzrasen avatar Dec 04 '18 23:12 herzrasen

I think falling back to A records, even defaulting to A (or making it configurable) makes a lot of sense. In general, I think SRV lookups should only be necessary when non-default ports are used (which should rarely be required in Kubernetes since each pod gets an IP address).

TimMoore avatar Dec 05 '18 08:12 TimMoore