Hi ,

We do use Traefik to act sa loadbalancer for our webapss.
It supports multiple backends.


-Abhishek

From: Alfredo Carneiro <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Thursday, 11 February 2016 at 4:09 PM
To: "[email protected]" <[email protected]>
Subject: Re: Using Virtual Hosts

Thanks guys. I will take a look in your solutions and let you know if everything is all right :)

On Feb 11, 2016 9:03 PM, "Shuai Lin" <[email protected]> wrote:
Ok, seems I misunderstood a little bit. So the tasks are managed by chronos? Then you should follow Tomek's advice, using service discovery tool like mesos-consul (maybe together with consul template).

Another less flexible but simpler solution is to list all the slaves in haproxy backends, e.g.

listen myapp 0.0.0.0:12345
    mode tcp
    server slave1 10.1.1.11:12345
    server slave2 10.1.1.12:12345
    server slave3 10.1.1.13:12345
    ...




On Fri, Feb 12, 2016 at 7:45 AM, Alfredo Carneiro <[email protected]> wrote:

But how can I assign a domain to a task using haproxy?

On Feb 11, 2016 8:29 PM, "Shuai Lin" <[email protected]> wrote:
Since you already have haproxy running, why not use it as a reverse proxy? 

On Fri, Feb 12, 2016 at 3:31 AM, Alfredo Carneiro <[email protected]> wrote:
Hi guys,

I have been searching for the past few weeks about Mesos and VHosts, saddly, I have not found anything useful.

I have a mesos cluster running some webapps. So, I have assigned specifc ports to these apps, so I access this apps using http://<mesos-master-ip>:<app-port>. How could I use Virtual Hosts to access these apps? http://myapp.com?

1x Mesos Master with HAProxy and Chronos
9x Mesos Slave with Docker

Thanks, 

--
Alfredo Miranda


Reply via email to