<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
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 class=""><br class="">
</div>
<div class="">Source: <a href="https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type" class="">https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type</a><br class="">
<div class=""><br class="">
</div>
<div class="">My comments in-line below.<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">hongbin <<a href="mailto:hongbin.lu@huawei.com" class="">hongbin.lu@huawei.com</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">COMMERCIAL:[Blueprint mesos-bay-type] Add support for mesos bay type</b><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">May 28, 2015 at 2:11:29 PM PDT<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><<a href="mailto:adrian.otto@rackspace.com" class="">adrian.otto@rackspace.com</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">hongbin <<a href="mailto:hongbin.lu@huawei.com" class="">hongbin.lu@huawei.com</a>><br class="">
</span></div>
<br class="">
<div class="">Blueprint changed by hongbin:<br class="">
<br class="">
Whiteboard set to:<br class="">
<br class="">
I did a preliminary research on possible implementations. I think this BP can be implemented in two steps.<br class="">
1. Develop a heat template for provisioning mesos cluster.<br class="">
2. Implement a magnum conductor for managing the mesos cluster.<br class="">
</div>
</blockquote>
<div><br class="">
</div>
Agreed, thanks for filing this blueprint!</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">First, I want to emphasis that mesos is not a service (It looks like a<br class="">
library). Therefore, mesos doesn't have web API, and most users don't<br class="">
use mesos directly. Instead, they use a mesos framework that is on top<br class="">
of mesos. Therefore, a mesos bay needs to have a mesos framework pre-<br class="">
configured so that magnum can talk to the framework to manage the bay.<br class="">
There are several framework choices. Below is a list of frameworks that<br class="">
look like a fit (in my opinion). A exhaustive list of framework can be<br class="">
found here [1].<br class="">
<br class="">
1. Marathon [2]<br class="">
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 class="">
</div>
</blockquote>
<div><br class="">
</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 class="">
<blockquote type="cite" class="">
<div class="">2. Aurora [4]<br class="">
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 class="">
</div>
</blockquote>
<div><br class="">
</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.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">3. Kubernetes/Docker swarm<br class="">
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 class="">
</div>
</blockquote>
<div><br class="">
</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><br class="">
</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 class="">
</div>
<div>Any opposing viewpoints to consider?</div>
<div><br class="">
</div>
<div>Thanks,</div>
<div><br class="">
</div>
<div>Adrian</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">--hongbin<br class="">
<br class="">
[1] <a href="http://mesos.apache.org/documentation/latest/mesos-frameworks/" class="">
http://mesos.apache.org/documentation/latest/mesos-frameworks/</a><br class="">
[2] <a href="https://github.com/mesosphere/marathon" class="">https://github.com/mesosphere/marathon</a><br class="">
[3] <a href="https://mesosphere.com/" class="">https://mesosphere.com/</a><br class="">
[4] <a href="http://aurora.apache.org/" class="">http://aurora.apache.org/</a><br class="">
[5] <a href="http://stackoverflow.com/questions/28651922/marathon-vs-aurora-and-their-purposes" class="">
http://stackoverflow.com/questions/28651922/marathon-vs-aurora-and-their-purposes</a><br class="">
[6] <a href="https://github.com/mesosphere/kubernetes-mesos" class="">https://github.com/mesosphere/kubernetes-mesos</a><br class="">
<br class="">
-- <br class="">
Add support for mesos bay type<br class="">
<a href="https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type" class="">https://blueprints.launchpad.net/magnum/+spec/mesos-bay-type</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>