Search code examples
mesosmesospheremarathon

Does Mesos-dns provides load balancing?


I was looking at Mesos + Marathon to manage Docker containers.

What we're trying to achieve is a way of getting an external DNS entry (test.example.com) to point to a specific set of docker containers. The DNS entry for test.example.com points to a load balancer which translate and send the connection to one of our backend servers app.

To do this I looked into Mesos-dns. With mesos-dns I can get DNS name for each container and can resolve DNS with container IP but couldn't find out way to load balance between set of servers.

Can someone confirm if Mesos-dns provides load balancing? If yes, how can I achieve load balancing with it?

Do I need to use some other solutions like HAProxy or Bamboo to achieve this?

Thanks!!

Sumit


Solution

  • Yes with Mesos-DNS you can do load balancing, see for example the respective HTTP API endpoints, but it's really not recommended in the context of DC/OS: see the internal (Minuteman) and external (Marathon-lb, HAProxy-based) load balancing and service discover options in the docs.