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

Support SRV records for cluster discovery #305

Open
dalehamel opened this Issue Aug 31, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@dalehamel
Contributor

dalehamel commented Aug 31, 2015

Currently the 'discover' option of serf supports mDNS, but this depends on multicast, and thus is not a viable solution in AWS and other unicast-only environments.

Our current work-around for this is to implement 'anchor nodes' for our cluster, which bootstrap the cluster and have SRV records associated with them.

When other nodes come up, they find the anchor nodes by SRV record and join their cluster.

This would be quite easy to add natively to serf, and I'd be fine with drawing up the PR myself if you think it's something that might get accepted.

IMHO, supported a form of service discovering that's very reliable and proven (DNS SRV) for environments that need it (can't use mDNS) is quite worthwhile.

@slackpad

This comment has been minimized.

Show comment
Hide comment
@slackpad

slackpad Sep 4, 2015

Contributor

This seems like something we could pull in as long as it doesn't add a bunch of complexity (which I agree it shouldn't) or new deps (but I think we already have everything you'd need).

Contributor

slackpad commented Sep 4, 2015

This seems like something we could pull in as long as it doesn't add a bunch of complexity (which I agree it shouldn't) or new deps (but I think we already have everything you'd need).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment