I'm working on a Mesos cluster with 3 mesos-master nodes (ip 105,106,107) and 3 mesos-slave nodes (ip 109,110,111). Apache Marathon v0.8.0 is installed on the 3 master nodes and Docker v1.5 on the 3 slave nodes.
I found a Mesos + Docker tutorial on the Mesosphere youtube channel and there they deployed a Nginx webserver through the Marathon api, I followed the video and it worked, Nginx was deployed in a Docker container and I was able to scale up the app to more instances then I have slave nodes.
Now I'm trying to install HAproxy for load balancing on the nodes. I followed this tutorial on the Mesosphere website for HAproxy-Marathon-Bridge installation. HAproxy is now via the cronjob able to find the instances that are running.
The problem is, after installation of Marathon bridge i'm not able to scale up my instances more than I have nodes available, even if there is just one instance of Nginx running on every slave. Also the Ngingx index.html is available at my 105:80 server (the elected leader) and 107:80. I dont know why that's the case. Because I thought Haproxy and Marathon bridge always redirected the traffic to port 80 of the elected leader.
HAproxy and HAproxy Marathon Bridge are installed on every master and every slave node. Do I uninstall the HAproxy and HAproxy Marathon Bridge on the masters and put one HAproxy machine in front of those 3?