4 ms·
Dns is not always a great solution if there are multiple A records. We wrote about a method for doing this with iptables and consul here. https://tech.iheart
by dberg 10y ago
Dns is not always a great solution if there are multiple A records. We wrote about a method for doing this with iptables and consul here.
https://tech.iheart.com/load-balancing-services-using-consul-and-iptables-204cde23b072#.map38p2am https://tech.iheart.com/load-balancing-services-using-consul...
- spydum 10y agoI'm confused on why in your article, you say the setup doesn't use a load balancer. How is a dynamic reconfiguration of IPTables not the same as a load balancer? What happens when your iptables box dies?
- dberg 10y agoBc iptables would run locally on each server. So you would access localhost:8000 which iptables would auto load balance to the nodes consul had. There is no central iptables server
- spydum 10y agoah, some how that wasn't so clear. Clever idea, but how do you distribute load across your front-end servers (or whatever is your actual public facing service)? Do you still rely there on a load balancer or round-robin DNS? I guess I'd be concerned about how to scale those instances in response to demand..