<div dir="ltr">Pacemaker as a scheduler in Mesos or Kubernates does sound like a very interesting idea. Packaging corosync into super privileged containers still doesn&#39;t make too much sense to me. What&#39;s the reason in isolating something and then giving it all permissions on a host machine? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 23, 2015 at 5:20 PM, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On 10 Feb 2015, at 1:45 pm, Serge Dubrouski &lt;<a href="mailto:sergeyfd@gmail.com">sergeyfd@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello Steve,<br>
&gt;<br>
&gt; Are you sure that Pacemaker is the right product for your project? Have you checked Mesos/Marathon or Kubernates? Those are frameworks being developed for managing containers.<br>
<br>
</span>And in a few years they&#39;ll work out that they need some HA features and try to retrofit them :-)<br>
In the meantime pacemaker is actually rather good at managing containers already and knows a thing or two about HA and how to bring up a complex stack of services.<br>
<br>
The one thing that would be really interesting in this area is using the our policy engine as the kubernates scheduler.<br>
So many ideas and so little time.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; On Sat Feb 07 2015 at 1:19:15 PM Steven Dake (stdake) &lt;<a href="mailto:stdake@cisco.com">stdake@cisco.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am working on Containerizing OpenStack in the Kolla project (<a href="http://launchpad.net/kolla" target="_blank">http://launchpad.net/kolla</a>).  One of the key things we want to do over the next few months is add H/A support to our container tech.  David Vossel had suggested using systemctl to monitor the containers themselves by running healthchecking scripts within the containers.  That idea is sound.<br>
&gt;<br>
&gt; There is another technology called “super-privileged containers”.  Essentially it allows more host access for the container, allowing the treatment of Pacemaker as a container rather than a RPM or DEB file.  I’d like corosync to run in a separate container.  These containers will communicate using their normal mechanisms in a super-privileged mode.  We will implement this in Kolla.<br>
&gt;<br>
&gt; Where I am stuck is how does Pacemaker within a container control other containers  in the host os.  One way I have considered is using the docker —pid=host flag, allowing pacemaker to communicate directly with the host systemctl process.  Where I am stuck is our containers don’t run via systemctl, but instead via shell scripts that are executed by third party deployment software.<br>
&gt;<br>
&gt; An example:<br>
&gt; Lets say a rabbitmq container wants to run:<br>
&gt;<br>
&gt; The user would run<br>
&gt; kolla-mgr deploy messaging<br>
&gt;<br>
&gt; This would run a small bit of code to launch the docker container set for messaging.<br>
&gt;<br>
&gt; Could pacemaker run something like<br>
&gt;<br>
&gt; Kolla-mgr status messaging<br>
&gt;<br>
&gt; To control the lifecycle of the processes?<br>
&gt;<br>
&gt; Or would we be better off with some systemd integration with kolla-mgr?<br>
&gt;<br>
&gt; Thoughts welcome<br>
&gt;<br>
&gt; Regards,<br>
&gt; -steve<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Serge Dubrouski.</div>
</div>