Using Virtual Hosts

2016-02-11 Thread Alfredo Carneiro
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://:*. How could I use Virtual Hosts to access the

Re: Using Virtual Hosts

2016-02-11 Thread Shuai Lin
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 < alfr...@simbioseventures.com> wrote: > Hi guys, > > I have been searching for the past few weeks about Mesos and VHosts, > saddly, I have not found anything useful. > > I

Re: Using Virtual Hosts

2016-02-11 Thread Alfredo Carneiro
But how can I assign a domain to a task using haproxy? On Feb 11, 2016 8:29 PM, "Shuai Lin" 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 < > alfr...@simbioseventures.com> wrote: > >> Hi guys, >> >> I have

Re: Using Virtual Hosts

2016-02-11 Thread Tomek Janiszewski
Hi Alfredo Have you seen https://github.com/mesosphere/marathon-lb or https://github.com/martensson/nixy I'm not sure if they will work straightforward with Chronos but you can pool Mesos for it's tasks (like https://github.com/CiscoCloud/mesos-consul does). pt., 12.02.2016 o 00:45 użytkownik Alfr

Re: Using Virtual Hosts

2016-02-11 Thread Shuai Lin
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.

Re: Using Virtual Hosts

2016-02-11 Thread Alfredo Carneiro
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" 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

Re: Using Virtual Hosts

2016-02-11 Thread Abhishek Amralkar
Thursday, 11 February 2016 at 4:09 PM To: "user@mesos.apache.org" <user@mesos.apache.org> 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" <linshuai

Re: Using Virtual Hosts

2016-02-11 Thread Jeff Schroeder
With a few of the newly added features, marathon-lb is actually a pretty elegant solution: https://github.com/mesosphere/marathon-lb On Thursday, February 11, 2016, Alfredo Carneiro < alfr...@simbioseventures.com> wrote: > Hi guys, > > I have been searching for the past few weeks about Mesos and

Re: Using Virtual Hosts

2016-02-11 Thread Marco Massenzio
How are you launching your tasks and are they containerized? If you use your own framework and launch tasks in containers, you can configure the networking mode as BRIDGED (in ContainerInfo), and your Framework will obtain (in the response / callback it receives after the task is launched) the por