You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Xiaoning Ding <dx...@gmail.com> on 2016/04/13 07:57:56 UTC
Hybrid application deployments (container/VM/bare metal) in Mesos
Hello,
I'm wondering if someone here can help point me some document links about hybrid application deployment in Mesos. The basic idea is that we have some applications in mixed flavors (container, VM, bare metal) and we want to run them on a single cluster.
Let me explain by an example. Say I have an application which consists of three different component services:
A web front-end which has been containerized. It can be deployed as a Docker image.
An application server which hasn��t been containerized. It can only run on a VM or a physical machine.
An Oracle database. Since I don��t want to lose any performance, I want to run it on a physical machine directly.
Now I want to run all these three component services on a single cluster and have a unified management on those heterogeneous resources. What's the suggested solution from Mesos side? Any known limitations or good practices?
Thanks,
Xiaoning
Re: Hybrid application deployments (container/VM/bare metal) in Mesos
Posted by Guangya Liu <gy...@gmail.com>.
Yes, but this depends: if you are using mesos containerizer, then the
cgroup will help on resources isolation; if you are using docker
containerizer, docker daemon will help on the resources isolation etc.
On Thu, Apr 14, 2016 at 3:21 PM, Xiaoning Ding <dx...@gmail.com> wrote:
> Thank you. The JIRA is something I’m looking for.
>
>
>
> I’m still going through Marathon documents to see how it addresses my
> scenario. So please forgive me if my question is already covered by
> Marathon documents.
>
>
>
> Suppose I run Mesos and Marathon on some bare metal cluster nodes. Without
> the mentioned JIRA implemented, I guess there will be no VM at all and all
> non-container apps have to run on physical machine directly? Does Marathon
> still use cgroups to limit the resource usage of these apps even they are
> not containerized?
>
>
>
> Thanks,
>
> Xiaoning
>
> *From:* Guangya Liu [mailto:gyliu513@gmail.com]
> *Sent:* Tuesday, April 12, 2016 11:22 PM
> *To:* user@mesos.apache.org
> *Subject:* Re: Hybrid application deployments (container/VM/bare metal)
> in Mesos
>
>
>
> If you do not want to provision VM or PM on demand, then mesos plus
> marathon can help.
>
>
>
> There is also a JIRA talking about support Qemu/KVM in mesos
> https://issues.apache.org/jira/browse/MESOS-2717
>
>
>
> On Wed, Apr 13, 2016 at 2:17 PM, tommy xiao <xi...@gmail.com> wrote:
>
> mesos + marathon natively support your heterogeneous app. are you some
> concerns?
>
>
>
> 2016-04-13 13:57 GMT+08:00 Xiaoning Ding <dx...@gmail.com>:
>
> Hello,
>
> I'm wondering if someone here can help point me some document links about
> hybrid application deployment in Mesos. The basic idea is that we have some
> applications in mixed flavors (container, VM, bare metal) and we want to
> run them on a single cluster.
>
> Let me explain by an example. Say I have an application which consists of
> three different component services:
>
> 1. A web front-end which has been containerized. It can be deployed as
> a Docker image.
> 2. An application server which hasn’t been containerized. It can only
> run on a VM or a physical machine.
> 3. An Oracle database. Since I don’t want to lose any performance, I
> want to run it on a physical machine directly.
>
> Now I want to run all these three component services on a single cluster
> and have a unified management on those heterogeneous resources. What's the
> suggested solution from Mesos side? Any known limitations or good practices?
>
>
>
> Thanks,
>
> Xiaoning
>
>
>
>
>
>
>
> --
>
> Deshi Xiao
> Twitter: xds2000
> E-mail: xiaods(AT)gmail.com
>
>
>
Re: Hybrid application deployments (container/VM/bare metal) in Mesos
Posted by haosdent <ha...@gmail.com>.
>Does Marathon still use cgroups to limit the resource usage of these apps
even they are not containerized?
Hi, @xiaoning. This is up to you how you start Mesos Agent. All tasks in
mesos are always containerized. If you use
--isolation="posix/mem,posix/cpu" and use MesosContainerizer to start your
task, this is nearly to start task in machine directly without cgroup.
On Thu, Apr 14, 2016 at 3:21 PM, Xiaoning Ding <dx...@gmail.com> wrote:
> Thank you. The JIRA is something I’m looking for.
>
>
>
> I’m still going through Marathon documents to see how it addresses my
> scenario. So please forgive me if my question is already covered by
> Marathon documents.
>
>
>
> Suppose I run Mesos and Marathon on some bare metal cluster nodes. Without
> the mentioned JIRA implemented, I guess there will be no VM at all and all
> non-container apps have to run on physical machine directly? Does Marathon
> still use cgroups to limit the resource usage of these apps even they are
> not containerized?
>
>
>
> Thanks,
>
> Xiaoning
>
> *From:* Guangya Liu [mailto:gyliu513@gmail.com]
> *Sent:* Tuesday, April 12, 2016 11:22 PM
> *To:* user@mesos.apache.org
> *Subject:* Re: Hybrid application deployments (container/VM/bare metal)
> in Mesos
>
>
>
> If you do not want to provision VM or PM on demand, then mesos plus
> marathon can help.
>
>
>
> There is also a JIRA talking about support Qemu/KVM in mesos
> https://issues.apache.org/jira/browse/MESOS-2717
>
>
>
> On Wed, Apr 13, 2016 at 2:17 PM, tommy xiao <xi...@gmail.com> wrote:
>
> mesos + marathon natively support your heterogeneous app. are you some
> concerns?
>
>
>
> 2016-04-13 13:57 GMT+08:00 Xiaoning Ding <dx...@gmail.com>:
>
> Hello,
>
> I'm wondering if someone here can help point me some document links about
> hybrid application deployment in Mesos. The basic idea is that we have some
> applications in mixed flavors (container, VM, bare metal) and we want to
> run them on a single cluster.
>
> Let me explain by an example. Say I have an application which consists of
> three different component services:
>
> 1. A web front-end which has been containerized. It can be deployed as
> a Docker image.
> 2. An application server which hasn’t been containerized. It can only
> run on a VM or a physical machine.
> 3. An Oracle database. Since I don’t want to lose any performance, I
> want to run it on a physical machine directly.
>
> Now I want to run all these three component services on a single cluster
> and have a unified management on those heterogeneous resources. What's the
> suggested solution from Mesos side? Any known limitations or good practices?
>
>
>
> Thanks,
>
> Xiaoning
>
>
>
>
>
>
>
> --
>
> Deshi Xiao
> Twitter: xds2000
> E-mail: xiaods(AT)gmail.com
>
>
>
--
Best Regards,
Haosdent Huang
RE: Hybrid application deployments (container/VM/bare metal) in Mesos
Posted by Xiaoning Ding <dx...@gmail.com>.
Thank you. The JIRA is something I’m looking for.
I’m still going through Marathon documents to see how it addresses my scenario. So please forgive me if my question is already covered by Marathon documents.
Suppose I run Mesos and Marathon on some bare metal cluster nodes. Without the mentioned JIRA implemented, I guess there will be no VM at all and all non-container apps have to run on physical machine directly? Does Marathon still use cgroups to limit the resource usage of these apps even they are not containerized?
Thanks,
Xiaoning
From: Guangya Liu [mailto:gyliu513@gmail.com]
Sent: Tuesday, April 12, 2016 11:22 PM
To: user@mesos.apache.org
Subject: Re: Hybrid application deployments (container/VM/bare metal) in Mesos
If you do not want to provision VM or PM on demand, then mesos plus marathon can help.
There is also a JIRA talking about support Qemu/KVM in mesos https://issues.apache.org/jira/browse/MESOS-2717
On Wed, Apr 13, 2016 at 2:17 PM, tommy xiao <xiaods@gmail.com <ma...@gmail.com> > wrote:
mesos + marathon natively support your heterogeneous app. are you some concerns?
2016-04-13 13:57 GMT+08:00 Xiaoning Ding <dxn2001@gmail.com <ma...@gmail.com> >:
Hello,
I'm wondering if someone here can help point me some document links about hybrid application deployment in Mesos. The basic idea is that we have some applications in mixed flavors (container, VM, bare metal) and we want to run them on a single cluster.
Let me explain by an example. Say I have an application which consists of three different component services:
1. A web front-end which has been containerized. It can be deployed as a Docker image.
2. An application server which hasn’t been containerized. It can only run on a VM or a physical machine.
3. An Oracle database. Since I don’t want to lose any performance, I want to run it on a physical machine directly.
Now I want to run all these three component services on a single cluster and have a unified management on those heterogeneous resources. What's the suggested solution from Mesos side? Any known limitations or good practices?
Thanks,
Xiaoning
--
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com <http://gmail.com>
Re: Hybrid application deployments (container/VM/bare metal) in Mesos
Posted by Guangya Liu <gy...@gmail.com>.
If you do not want to provision VM or PM on demand, then mesos plus
marathon can help.
There is also a JIRA talking about support Qemu/KVM in mesos
https://issues.apache.org/jira/browse/MESOS-2717
On Wed, Apr 13, 2016 at 2:17 PM, tommy xiao <xi...@gmail.com> wrote:
> mesos + marathon natively support your heterogeneous app. are you some
> concerns?
>
> 2016-04-13 13:57 GMT+08:00 Xiaoning Ding <dx...@gmail.com>:
>
>> Hello,
>>
>> I'm wondering if someone here can help point me some document links about
>> hybrid application deployment in Mesos. The basic idea is that we have some
>> applications in mixed flavors (container, VM, bare metal) and we want to
>> run them on a single cluster.
>>
>> Let me explain by an example. Say I have an application which consists of
>> three different component services:
>>
>> 1. A web front-end which has been containerized. It can be deployed
>> as a Docker image.
>> 2. An application server which hasn’t been containerized. It can only
>> run on a VM or a physical machine.
>> 3. An Oracle database. Since I don’t want to lose any performance, I
>> want to run it on a physical machine directly.
>>
>> Now I want to run all these three component services on a single cluster
>> and have a unified management on those heterogeneous resources. What's the
>> suggested solution from Mesos side? Any known limitations or good practices?
>>
>>
>> Thanks,
>>
>> Xiaoning
>>
>>
>>
>
>
>
> --
> Deshi Xiao
> Twitter: xds2000
> E-mail: xiaods(AT)gmail.com
>
Re: Hybrid application deployments (container/VM/bare metal) in Mesos
Posted by tommy xiao <xi...@gmail.com>.
mesos + marathon natively support your heterogeneous app. are you some
concerns?
2016-04-13 13:57 GMT+08:00 Xiaoning Ding <dx...@gmail.com>:
> Hello,
>
> I'm wondering if someone here can help point me some document links about
> hybrid application deployment in Mesos. The basic idea is that we have some
> applications in mixed flavors (container, VM, bare metal) and we want to
> run them on a single cluster.
>
> Let me explain by an example. Say I have an application which consists of
> three different component services:
>
> 1. A web front-end which has been containerized. It can be deployed as
> a Docker image.
> 2. An application server which hasn’t been containerized. It can only
> run on a VM or a physical machine.
> 3. An Oracle database. Since I don’t want to lose any performance, I
> want to run it on a physical machine directly.
>
> Now I want to run all these three component services on a single cluster
> and have a unified management on those heterogeneous resources. What's the
> suggested solution from Mesos side? Any known limitations or good practices?
>
>
> Thanks,
>
> Xiaoning
>
>
>
--
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com