<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 06/01/12 22:59, jjs - mainphrame wrote:
<blockquote
 cite="mid:CABkzw7zjfEi6LcLvppX0dcFY0YJvddD_eCxxs1g0djnBXz0Dmw@mail.gmail.com"
 type="cite">
  <meta http-equiv="Context-Type"
 content="text/html; charset=ISO-8859-1">
  <div>On Fri, Jan 6, 2012 at 12:34 PM, Tim Small <span>&lt;<a
 moz-do-not-send="true" href="mailto:tim@seoss.co.uk">tim@seoss.co.uk</a>&gt;</span>
wrote:<br>
  <blockquote><br>
pacemaker+heartbeat</blockquote>
  <div><br>
  </div>
  <div>Interesting idea, I wonder about the tradeoffs. I tend to keep
the host node pretty lean and run heartbeat/corosync/pacemaker in the
CTs, if anywhere.</div>
  <br>
  </div>
</blockquote>
<br>
We have a few machines where we put the OpenVZ container backing stores
on drbd and use heartbeat+pacemaker (we had some issues with corosync
during testing when we initially set things up a few years ago, but
it's probably fine now) to manage the OpenVZ containers as cluster
resources.<br>
<br>
Disk writes are relatively expensive so it's not perfect for all
workloads, but it works well overall, and has survived real hardware
failures (e.g. motherboard failure) with minimal downtime.<br>
<br>
It also allows you to move nodes around easily and should allow you to
carry out things like host node kernel updates without bringing down
containers (using live migration to other HNs) - although we've not
gotten around to testing this.<br>
<br>
Our machines are in pairs, but really it'd be better to have them in
something like groups of four, so that when a HN fails, the remaining 3
HNs each end up running a third of the evicted containers...&nbsp; This
would require corosync instead of heartbeat of course (heartbeat
supports 2 nodes only).<br>
<br>
Tim.<br>
<br>
<pre class="moz-signature" cols="72">-- 
South East Open Source Solutions Limited
Registered in England and Wales with company number 06134732.  
Registered Office: 2 Powell Gardens, Redhill, Surrey, RH1 1TQ
VAT number: 900 6633 53  <a class="moz-txt-link-freetext" href="http://seoss.co.uk/">http://seoss.co.uk/</a> +44-(0)1273-808309</pre>
</body>
</html>