Thanks for sharing this!<p>With the mantl project <a href="https://github.com/CiscoCloud/microservices-infrastructure" rel="nofollow">https://github.com/CiscoCloud/microservices-infrastructure</a> we feed mesos task information into consul.<p>We've looked a lot a load balancing and feel that rewriting haproxy files dynamically can lead to brittle behavior.<p>Our current setup is we use traefik <a href="https://github.com/emilevauge/traefik" rel="nofollow">https://github.com/emilevauge/traefik</a> to proxy marathon tasks.<p>Haproxy 1.6 includes some dynamic dns lookups <a href="http://blog.haproxy.com/2015/10/14/whats-new-in-haproxy-1-6/" rel="nofollow">http://blog.haproxy.com/2015/10/14/whats-new-in-haproxy-1-6/</a>