Skip to content
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

RFC: have a flag to advertise service groups on local network using multicast DNS or similar #1939

Closed
bixu opened this issue Mar 10, 2017 · 2 comments

Comments

@bixu
Copy link
Contributor

bixu commented Mar 10, 2017

(This might be more of an RFD (Request For Discussion). Full disclosure, I'm not sure if this is a good idea, but I keep thinking about the sharp edges gossip ring setup has for new users.)

What if we allowed Supervisors to find each other using MDNS (this would certainly be a non-default option as MDNS can be quite noisy). The thoughts I've had so far go something like:

hab sup start <origin>/<app> --group <group> --mdns

As the first Supervisor starts, it uses it's namespace to construct and advertise an MDNS record for itself:

0-<app>-<origin>-<group>.local

Later Supervisors 'guess' the MDNS name the first Supervisor and try to use that name as their gossip --peer:

hab sup start <origin>/<app> --group <group> --mdns
hab sup start <origin>/<app> --group <group> --peer 0-<app>-<origin>-<group>.local
1-<app>-<origin>-<group>.local
@rsertelon
Copy link
Contributor

This is similar as what is written in #849

@elliott-davis
Copy link
Contributor

Closing as a duplicate of #849

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

No branches or pull requests

5 participants