<div dir="ltr"><div>I want to mention that there is another mesos framework named as chronos: <a href="https://github.com/mesos/chronos">https://github.com/mesos/chronos</a> , it is used for job orchestration.<br></div><div><br></div><div>For others, please refer to my comments in line.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-29 7:45 GMT+08:00 Adrian Otto <span dir="ltr"><<a href="mailto:adrian.otto@rackspace.com" target="_blank">adrian.otto@rackspace.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
I’m moving this whiteboard to the ML so we can have some discussion to refine it, and then go back and update the whiteboard.
<div><br>
</div>
<div>Source: <a href="https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type" target="_blank">https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type</a><br>
<div><br>
</div>
<div>My comments in-line below.<br>
<div><br>
<blockquote type="cite">
<div>Begin forwarded message:</div>
<br>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>From:
</b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">hongbin <<a href="mailto:hongbin.lu@huawei.com" target="_blank">hongbin.lu@huawei.com</a>><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Subject:
</b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><b>COMMERCIAL:[Blueprint mesos-bay-type] Add support for mesos bay type</b><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Date:
</b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">May 28, 2015 at 2:11:29 PM PDT<br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>To:
</b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><<a href="mailto:adrian.otto@rackspace.com" target="_blank">adrian.otto@rackspace.com</a>><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Reply-To:
</b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">hongbin <<a href="mailto:hongbin.lu@huawei.com" target="_blank">hongbin.lu@huawei.com</a>><br>
</span></div>
<br>
<div>Blueprint changed by hongbin:<br>
<br>
Whiteboard set to:<br>
<br>
I did a preliminary research on possible implementations. I think this BP can be implemented in two steps.<br>
1. Develop a heat template for provisioning mesos cluster.<br>
2. Implement a magnum conductor for managing the mesos cluster.<br>
</div>
</blockquote>
<div><br>
</div>
Agreed, thanks for filing this blueprint!</div></div></div></div></blockquote><div>For 2, the conductor is mainly used to manage objects for CoE, k8s has pod, service, rc, what is the mesos object that we want to manage? IMHO, mesos is a resource manager and it needs to be worked with some frameworks to provide services. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>
<div><br>
<blockquote type="cite">
<div>First, I want to emphasis that mesos is not a service (It looks like a<br>
library). Therefore, mesos doesn't have web API, and most users don't<br>
use mesos directly. Instead, they use a mesos framework that is on top<br>
of mesos. Therefore, a mesos bay needs to have a mesos framework pre-<br>
configured so that magnum can talk to the framework to manage the bay.<br>
There are several framework choices. Below is a list of frameworks that<br>
look like a fit (in my opinion). A exhaustive list of framework can be<br>
found here [1].<br>
<br>
1. Marathon [2]<br>
This is a framework controlled by a company (mesosphere [3]). It is open source through. It supports running app on clusters of docker containers. It is probably the most widely-used mesos framework for long-running application.<br>
</div>
</blockquote>
<div><br>
</div>
Marathon offers a REST API, whereas Aroura does not (unless one has materialized in the last month). This was the one we discussed in our Vancouver design summit, and we agreed that those wanting to use Apache Mesos are probably expecting this framework. </div>
<div><br>
<blockquote type="cite">
<div>2. Aurora [4]<br>
This is a framework governed by Apache Software Foundation. It looks very similar to Marathon, but maybe more advanced in nature. It has been used by Twitter at scale. Here [5] is a detailed comparison between Marathon and Aurora.<br>
</div>
</blockquote>
<div><br>
</div>
We should have an alternate bay template for Aroura in our contrib directory. If users like Aroura better than Marathon, we can discuss making it the default template, and put the Marathon template in the contrib directory. <br></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>
<div><br>
<blockquote type="cite">
<div>3. Kubernetes/Docker swarm<br>
It looks the swarm-mesos is not ready yet. I cannot find any thing about that (besides several videos on Youtube). The kubernetes-mesos is there [6]. In theory, magnum should be able to deploy a mesos bay and talk to the bay through kubernetes API. An advantage
is that we can reuse the kubernetes conductor. A disadvantage is that it is not a 'mesos' way to manage containers. Users from mesos community are probably more comfortable to manage containers through Marathon/Aurora.<br>
</div>
</blockquote>
<div><br>
</div>
If you want Kubernetes, you should use the Kubernetes bay type. If you want Kubernetes controlling Mesos, make a custom Heat template for that, and we can put it into contrib.</div></div></div></div></blockquote><div>Agree, even using Mesos as resource manager, end user can still use magnum API to create pod, service, and rc. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>
<div><br>
</div>
<div>If you want Swarm controlling Mesos, then you want BOTH a Swarm bay *and* a Mesos bay, with the Swarm bay configured to use the Mesos bay using the (currently developing) integration hook for Mesos in Swarm.</div>
<div><br>
</div>
<div>Any opposing viewpoints to consider?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Adrian</div>
<div><br>
<blockquote type="cite">
<div>--hongbin<br>
<br>
[1] <a href="http://mesos.apache.org/documentation/latest/mesos-frameworks/" target="_blank">
http://mesos.apache.org/documentation/latest/mesos-frameworks/</a><br>
[2] <a href="https://github.com/mesosphere/marathon" target="_blank">https://github.com/mesosphere/marathon</a><br>
[3] <a href="https://mesosphere.com/" target="_blank">https://mesosphere.com/</a><br>
[4] <a href="http://aurora.apache.org/" target="_blank">http://aurora.apache.org/</a><br>
[5] <a href="http://stackoverflow.com/questions/28651922/marathon-vs-aurora-and-their-purposes" target="_blank">
http://stackoverflow.com/questions/28651922/marathon-vs-aurora-and-their-purposes</a><br>
[6] <a href="https://github.com/mesosphere/kubernetes-mesos" target="_blank">https://github.com/mesosphere/kubernetes-mesos</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Add support for mesos bay type<br>
<a href="https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type" target="_blank">https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type</a><br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks,<br><br></div>Jay Lau (Guangya Liu)<br></div></div></div></div>
</div></div>