-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nsqd: expand DNS records for "service discovery" #646
Comments
To clarify, our goal with #601 was to somewhat defer making a choice on supporting any specific service discovery methods as there is broad lack of consensus on a singular approach to do that. Instead we chose as a first step to expose the foundational capability that could be used to integrate with any discovery mechanism. I'm not opposed to a path forward on built in support for (some) service discovery approaches. This is a good spot for discussion on that. Thoughts @mreiferson ? |
@jehiah yea, I agree. For example, implementing some DNS based resolution would be reasonably agnostic to the service discovery implementation as most expose some mechanism to deliver results in that way. |
Well by expanding DNS it also just allows anyone who wants to use DNS, like with Route53 on AWS with a Private Zone to just setup a record that contains all nsqlookupd servers and viola. It doesn't necessarily have to be in the name of support "service discovery". |
@ekristen I think we agree 😁 |
Awesome @mreiferson +1 |
+1 to DNS discovery. This would be great addition. |
I've created a "sidecar" app that runs alongside each https://github.com/harlow/nsqd-discovery @mreiferson re: #708 I'll get a PR into nsqd docs that explains how to use the new config endpoints. They seem like a decent stop-gap until a decision is made whether or not to add DNS discovery to |
@harlow this is great, I'll keep an eye out for that PR! |
@mreiferson does it make sense to add |
probably :) |
+1 for adding the endpoint to |
In the age of service discovery where tools like Consul, SkyDNS, and other services exist to do service discovery via DNS because networks and IP address change, I think it would make sense for NSQ to take advantage of this.
This proposal is for anytime a DNS entry is given to an argument like
-lookupd-tcp-address
that nsq take all the records returned from the DNS query and make the additional connections automatically.For example, if using consul and I provide
-lookupd-tcp-address=nsqlookup.service.consul
and thensqlookup.service.consul
has 3 IP addresses in the DNS record, nsqd should make 3 separate connections just as if-lookup-tcp-address
had been given 3 times.Thoughts?
The text was updated successfully, but these errors were encountered: