5 ms·
>Compare this to have a service that edits (let say an HAProxy) configuration and populates it with IP addresses. Just edit the hosts file? If you have access
by totony 7y ago
>Compare this to have a service that edits (let say an HAProxy) configuration and populates it with IP addresses.
Just edit the hosts file? If you have access to machines that run your code and can edit configuration, and also don't want the downsides of resolvers (pull-based instead of push-based updates, TTLs), DNS still seems like a better idea than some new stacks, plus you can push hosts files easily via ssh/ansible/basically any configuration management software
EDIT: The only issue I see with DNS as service discovery is that you can't specify ports. But usually software should use standard ports for their uses and that's never been a problem in my experience.
- drybjed 7y agoYou can specify ports using SRV resource records.
- totony 7y agoYou could but there's no integration for that that i know of so it'd be a bit of work to get working, which is why i didnt include it
- nitrogen 7y agoIt's how mdns works with Avahi/Bonjour/Zeroconf
- imtringued 7y agohttps://www.haproxy.com/documentation/aloha/9-5/traffic-management/lb-layer7/dns-srv-records/ https://www.haproxy.com/documentation/aloha/9-5/traffic-mana...