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 port (and will already know the hostname/ip of the
Agent whose Offer it accepted) - this information can then be fed to
whatever discovery mechanism you use (or, more trivially, in the
Framework's Web UI - which itself can be advertised to the Master - via the
`webui_url` field in the FrameworkInfo protobuf [0]

I don't know enough of Marathon to really be able to help there - but if
you post the question in their user group, I'm sure there's a less involved
way to do this if you use it. :)

[0] ./include/mesos/mesos.proto LL #206

-- 
*Marco Massenzio*
http://codetrips.com

On Thu, Feb 11, 2016 at 9:27 PM, Jeff Schroeder 
wrote:

> 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 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 these apps? *http://myapp.com *?
>>
>> 1x Mesos Master with HAProxy and Chronos
>> 9x Mesos Slave with Docker
>>
>> Thanks,
>>
>> --
>> Alfredo Miranda
>>
>
>
> --
> Text by Jeff, typos by iPhone
>


Announcing MesosCon North America 2016

2016-02-11 Thread Kiersten Gaffney
Hello all,


We’re excited to announce that MesosCon North America 2016 will be held in
Denver, CO on June 1-2, 2016. MesosCon is a community-driven conference,
organized for the Apache Mesos community.

Talk submissions, sponsorship opportunities, and early-bird registration
are now open for the conference.

Speak at MesosCon

Several formats are being accepted for speaking proposals, including:
Presentations, Panels, Keynotes and Lightning Talks. Submissions are being
accepted through March 9, 2016:
http://events.linuxfoundation.org/events/mesoscon/program/cfp

You can take a look at MesosCon 2015 list of talks

for ideas. If you’re unsure about your proposal, or want some feedback or
advice in general, please don’t hesitate to reach out to us. We’ll be happy
to help out! Further details are available on the CFP website.


All submissions for MesosCon North America will also be considered for the
upcoming MesosCon Europe and China events (details to be announced shortly).

Sponsor MesosCon

The sponsorship prospectus for MesosCon is now available:
http://events.linuxfoundation.org/events/mesoscon/sponsors, including
several opportunities with limited availability.

Attend MesosCon

Early-Bird registration is open through April 22nd:
http://events.linuxfoundation.org/events/mesoscon/attend/register

We look forward to seeing you at MesosCon North America, as well as
MesosCon Europe and MesosCon China taking place later this year (details to
be announced shortly).

Kiersten


Re: Docker Containerizer: custom name possible?

2016-02-11 Thread tommy xiao
Hi Ed,

the prefix name is defined in docker.hpp,

```

77 const string DOCKER_NAME_PREFIX = "mesos-";

```

if you have more concerns on the request, please file a issue to discussion.



2016-02-11 7:34 GMT+08:00 Edward Burns :

> Hello Mesosphere,
>
> I have a newbie question.  Looking at [1] I see:
>
> Doc> The Docker Containerizer launches all containers with the mesos-
> Doc> prefix plus the slave id (ie: mesos-slave1-abcdefghji), and also
> Doc> assumes all containers with the mesos- prefix is managed by the
> Doc> slave and is free to stop or kill the containers.
>
> Is there some way to customize that prefix?  I'm trying to do some log
> disambiguation and it would be handy if I could inject a custom string
> into the name.
>
> Thanks,
>
> Ed
>
> --
> | edward.bu...@oracle.com | office: +1 407 458 0017
>
>
> [1] http://mesos.apache.org/documentation/latest/docker-containerizer/
>



-- 
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com


Re: Docker Containerizer: custom name possible?

2016-02-11 Thread haosdent
> I'm trying to do some log disambiguation and it would be handy if I could
inject a custom string into the name.

If you want inject inside container, the name stored
in MESOS_CONTAINER_NAME. If you want inject outside, you could get it by
/state endpoint. The container name is combined by DOCKER_NAME_PREFIX +
slaveId + DOCKER_NAME_SEPERATOR + containerId.

On Thu, Feb 11, 2016 at 7:09 PM, tommy xiao  wrote:

> Hi Ed,
>
> the prefix name is defined in docker.hpp,
>
> ```
>
> 77 const string DOCKER_NAME_PREFIX = "mesos-";
>
> ```
>
> if you have more concerns on the request, please file a issue to
> discussion.
>
>
>
> 2016-02-11 7:34 GMT+08:00 Edward Burns :
>
>> Hello Mesosphere,
>>
>> I have a newbie question.  Looking at [1] I see:
>>
>> Doc> The Docker Containerizer launches all containers with the mesos-
>> Doc> prefix plus the slave id (ie: mesos-slave1-abcdefghji), and also
>> Doc> assumes all containers with the mesos- prefix is managed by the
>> Doc> slave and is free to stop or kill the containers.
>>
>> Is there some way to customize that prefix?  I'm trying to do some log
>> disambiguation and it would be handy if I could inject a custom string
>> into the name.
>>
>> Thanks,
>>
>> Ed
>>
>> --
>> | edward.bu...@oracle.com | office: +1 407 458 0017
>>
>>
>> [1] http://mesos.apache.org/documentation/latest/docker-containerizer/
>>
>
>
>
> --
> Deshi Xiao
> Twitter: xds2000
> E-mail: xiaods(AT)gmail.com
>



-- 
Best Regards,
Haosdent Huang


Re: Using Virtual Hosts

2016-02-11 Thread Abhishek Amralkar



Hi ,


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


https://github.com/emilevauge/traefik


-Abhishek




From: Alfredo Carneiro 
Reply-To: "user@mesos.apache.org" 
Date: Thursday, 11 February 2016 at 4:09 PM
To: "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"  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 
 wrote:

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 
 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://:. 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
























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 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 <
> alfr...@simbioseventures.com> wrote:
>
>> 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 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 these apps? *http://myapp.com *?

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

 Thanks,

 --
 Alfredo Miranda

>>>
>>>
>


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 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 these apps? *http://myapp.com *?
>
> 1x Mesos Master with HAProxy and Chronos
> 9x Mesos Slave with Docker
>
> Thanks,
>
> --
> Alfredo Miranda
>


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 Alfredo Carneiro <
alfr...@simbioseventures.com> napisał:

> 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 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 these apps? *http://myapp.com *?
>>>
>>> 1x Mesos Master with HAProxy and Chronos
>>> 9x Mesos Slave with Docker
>>>
>>> Thanks,
>>>
>>> --
>>> Alfredo Miranda
>>>
>>
>>


ApacheCon NA 2016 - Important Dates!!!

2016-02-11 Thread Melissa Warnkin
 Hello everyone!
I hope this email finds you well.  I hope everyone is as excited about 
ApacheCon as I am!
I'd like to remind you all of a couple of important dates, as well as ask for 
your assistance in spreading the word! Please use your social media platform(s) 
to get the word out! The more visibility, the better ApacheCon will be for 
all!! :)
CFP Close: February 12, 2016CFP Notifications: February 29, 2016Schedule 
Announced: March 3, 2016
To submit a talk, please visit:  
http://events.linuxfoundation.org/events/apache-big-data-north-america/program/cfp

Link to the main site can be found here:  
http://events.linuxfoundation.org/events/apache-big-data-north-america

Apache: Big Data North America 2016 Registration Fees:
Attendee Registration Fee: US$599 through March 6, US$799 through April 10, 
US$999 thereafterCommitter Registration Fee: US$275 through April 10, US$375 
thereafterStudent Registration Fee: US$275 through April 10, $375 thereafter
Planning to attend ApacheCon North America 2016 May 11 - 13, 2016? There is an 
add-on option on the registration form to join the conference for a discounted 
fee of US$399, available only to Apache: Big Data North America attendees.
So, please tweet away!!
I look forward to seeing you in Vancouver! Have a groovy day!!
~Melissaon behalf of the ApacheCon Team