Everything is a Freaking DNS problem - linux-ha http://127.0.0.1:8080/blog/taxonomy/term/562/0 en Ensure Running http://127.0.0.1:8080/blog/ensure-running <p>Has anyone noticed that pretty much every puppet module one finds on the internet by default enables the service they try to configure in the module</p> <p>When looking at it from a single machine point of view it makes sense to include the module , have it configure your service and directly enable it by default.</p> <p>So I started wondering .. isn't there anybody out there who is building clusters ? Where services have to configured on multiple nodes but should NOT be running acitvely on all nodes by default because there is an external tool which manages that for you (Pacemaker framework eg.)</p> <p>Agreed it's a small patch to get the functionality you want , but it brings an extra overhead when one upgrades the modules etc.</p> <p>So if it doesn't bother you please split your puppet module in 2 parts.. one you call to configure the service, another which you call to enable the service , if you want to.</p> <p>thnx !</p> http://127.0.0.1:8080/blog/ensure-running#comments devops heartbeat linux-ha managed modules puppet unmanaged Thu, 10 Feb 2011 19:20:44 +0000 Kris Buytaert 1034 at http://127.0.0.1:8080/blog Upcoming 2011 Speaking Engagements http://127.0.0.1:8080/blog/upcoming-2011-speaking-engagements <p><a href="http://www.lenzg.net/" rel="nofollow">Lenz</a> gave the good example so I`ll follow :)</p> <p>Next weekend saturday I`ll be giving a talk about devops at <a href="http://brussels.startupweekend.org/speakers/" rel="nofollow">StartUp Weekend Brussels</a>, from what I've read so far it promises to be an audience that needs the talk, </p> <p>The week after I`ll be speaking at the <a href="http://bxl2011.drupaldays.org/node/233" rel="nofollow">DrupalDevDays</a>, again about devops , however this time with a touch of Drupal , giving a devops talk at Devoxx last year to a Java audience learned me that the devops evangelist need to go outside of their usual conference audiences and als talk to the people that are usually in the other silos. </p> <p>Next march I`ll be speaking at the <a href="http://www.ukuug.org/events/spring2011/programme/" rel="nofollow">UKUUG spring conference in Leeds</a> this time about my experiences on High Availability with Pacemaker</p> <p>And who knows I might squeeze in a talk at <a href="http://loadays.org/" rel="nofollow">Load</a> this year also .. </p> <p>If you are around at one of these confs and you want to talk Devops, Clustering, sipx or just have a beer .. don't hesitate ! There's already <a href="http://twitter.com/#!/jpmens/status/28483625066430464" rel="nofollow">plenty of people</a> promising me beers , and some even sushi :)</p> http://127.0.0.1:8080/blog/upcoming-2011-speaking-engagements#comments devops drupal fosdem linux-ha opensource pacemaker ukuug Sun, 23 Jan 2011 22:04:15 +0000 Kris Buytaert 1030 at http://127.0.0.1:8080/blog High Availability MySQL Cookbook , the review http://127.0.0.1:8080/blog/high-availability-mysql-cookbook-review <p>When I read on the internetz that Alex Davies was about the publish a <a href="https://www.packtpub.com/high-availability-mysql-cookbook/book" rel="nofollow">Packt book on MySQL HA</a> I pinged my contacts at Packt and suggested that I'd review the book .</p> <p>I've ran into <a href="https://sites.google.com/a/davz.net/alex-davies/" rel="nofollow">Alex</a> at some UKUUG conferences before and he's got a solid background on MySQL Cluster and other HA alternatives so I was looking forward to reading the book.</p> <p>Alex starts of with a couple of indepth chapters on MySQL Cluster, he does mention that it's not a fit for all problems, but I'd hoped he did it a bit more prominently ... an upfront chapter outlining the different approaches and when which approach is a match could have been better. The avid reader now might be 80 pages into MySQL cluster before he realizes it's not going to be a match for his problem.</p> <p>I really loved the part where Alex correcly mentions that you should probably be using Puppet or so to manage the config files of your environment, rather than scp them around your different boxes ..</p> <p>Alex then goes on to describe setting up MySQL replication and Multi Master replication with the different approaches one can take here, he gives some nice tips on using LVM to reduce the downtime of your MySQL when having to transfer the dataset of an already existing MySQL setup, good stuff.</p> <p>He then goes on to describe MySQL with shared storage ... if you only mount your redundant sandisk once on your MySQL nodes my preference would probably be a Pacemaker stack rather than a RedHat Cluster based setup, but his setup seems to work too. Alex quickly touches on using GFS to have your data disk mounted simultaneously on both nodes (keep in mind with only 1 active MySQLd) and then goes on to describe a full DRBD based MySQL HA setup</p> <p>The last chapter titled Performance tuning gives some very nice tips on both tuning your regular storage, as your<br /> GFS setup but also the tuning parameters for MySQL Cluster</p> <p>I was also really happy to see the Appendixes on the basic installation where he advocates the use of Cobbler , Kickstart and LVM ..</p> <p>One of the better books I read the past couple of years .. certainly the best book from Packt so far , I hope there is more quality stuff coming from that direction !</p> http://127.0.0.1:8080/blog/high-availability-mysql-cookbook-review#comments cobbler drbd ha heartbeat linux-ha mysql pacemaker puppet Wed, 03 Nov 2010 23:07:18 +0000 Kris Buytaert 1022 at http://127.0.0.1:8080/blog UKUUG Spring Conference 2010 http://127.0.0.1:8080/blog/ukuug-spring-conference-2010 <p>Last week I was in Manchester for the 2010 UKUUG Spring Conference, right .. make that 2 weeks ago , :) </p> <p>The UKUUG usually hosts the more interesting conferences around ... , it's not just the schedule that attrackts me , yes there's the strong focus towards Larger Scale Unix (and mostly Linux) deployments and how to manage them, but there's also the opportunity to chat in real life with the Devops from across the chunnel.</p> <p>Spending time with <a href="http://www.devco.net/">R.I.Pienaar</a>, <a href="http://www.build-doctor.com/2010/03/26/ukuug-spring-conference-2010/">Julian Simpson</a>, <a href="http://twitter.com/simonxwilkinson">Simon Wilkinson</a> , <a href="https://sites.google.com/a/davz.net/alex-davies/">Alex Davies</a> , <a href="http://database-explorer.blogspot.com/">Simon Riggs</a> , Josette, and many others is always fun .</p> <p>As I was in town early I went to the preconference beer meetup and met with a lot of people and chatted about config management, virtualization and lots of other stuff ... after the pub the plan was to go for curries nearby .. and while walking to the , ahem Bus stop, I managed to recognise <a href="http://monkeyiq.blogspot.com/">Ben Martin</a> from meeting him back ages ago in Hamburg for LinuxKongress , always fun ..</p> <p>Apart from having to jump on a bus and our group being split at the curry place , rather than being able to tell the latecomers where to walk to and being seeted upstairs with the whole group , the curries were interesting and fun.</p> <p>As I had been pushing <a href="http://blog.gardeviance.org/">Simon Wardley</a> on Twitter to submit a talk for the conference it was really great to finally see him present .. His talk was the perfect soft introduction to the conference ...</p> <p>Simon's talk was followed by a talk on Security for the virtual datacenters, after I questionned the speaker if anyone actualy uses TPM outside an academic lab the talk suddenly changed into a commercial presentation for a Quack, nuff said.</p> <p>The Ever energetic <a href="http://www.shadowcat.co.uk/blog/matt-s-trout/">Matt S Trout</a> talked about 21st century perl before Simon "Life is to short for SELinux" Wilkinson talked about his experiences in getting the openAFS crowd on Git.</p> <p>Bummer Thierry Carrez didn't show us the real juice of UEC and just the installations of a Cloud Controller and a Node Controller , but he managed to do so in approx 30 minutes as promised .</p> <p>A talk titled Coherent and Integrated Configuration of Virtual Infrastructures always cathces my eye.. however when that talk turns out to be a Coherent and Integrated configuration only within the Univerity of Edinborough (aka lcfg2) talk I`m dissapointed, specially since it pretty much didn't introduce any new concepts from the ones I introduced back in my Durham UKUUG presentation</p> <p>Luckily Andrew Stribblehill gave a very interesting talk on MySQL scalability, in which I promised him some answers to his questions for the next day :)</p> <p>The Conference dinner was without a doubt the best UKUUG dinner so far , no typical english "food", no weird location (Old Trafford, an abandoned warship) , but just a big chinese place and plenty of food !</p> <p>I started thurday morning in the wrong track, I assumed to be in the Virtualization track, but I ended up in the Sun thinclient and Abusing Linux to serve weird desktops under the Green computing umbrella track, not my favourites ..</p> <p>When Patrick and Julian started their Hudson hit my Puppet with a Cucumber talk (which featured some aweseom #devops content) I was a afraid that we'd had to look for a replacment PostgreSQL talk as Simon hadn't arrived yet .. Luckily he arrived in time for his presentation and he explained us about the new replication features that are slowly making it into PostgreSQL, one way ... log shipping ... not really up to par with other alternatives yet :(</p> <p>So with no further ado .. here's the presentation I gave</p> <div style="width:425px" id="__ss_3582666"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/KrisBuytaert/mysql-ha-with-pacemaker" title="MySQL HA with PaceMaker">MySQL HA with PaceMaker</a></strong> <object width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mysql-pacemaker-100329022737-phpapp01&stripped_title=mysql-ha-with-pacemaker" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mysql-pacemaker-100329022737-phpapp01&stripped_title=mysql-ha-with-pacemaker" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/KrisBuytaert">Kris Buytaert</a>.</div> </div> <p>PS. If at a Ukuug event and not sure about a person's name ... try Simon.. pretty good chance you're correct :)</p> http://127.0.0.1:8080/blog/ukuug-spring-conference-2010#comments conference devops ha linux-ha manchester mysql puppet simon ukuug Wed, 07 Apr 2010 17:16:20 +0000 Kris Buytaert 997 at http://127.0.0.1:8080/blog Got Interviewed http://127.0.0.1:8080/blog/got-interviewed <p>by <a href="http://www.johnmwillis.com/devopsdays/devopsdays-09-interview-with-kris-buytaert/">@botchagalupe</a><br /> on Virtualization, Open Source tools and DNS Problems</p> <p><embed src="http://blip.tv/play/AYGuxQoC" type="application/xshockwave-flash" width="480" height="390" allowscriptaccess="always" allowfullscreen="true"></embed></p> http://127.0.0.1:8080/blog/got-interviewed#comments dnsproblem drupal ha heartbeat linux-ha mysql pacemaker puppet virtualization xen Wed, 18 Nov 2009 20:05:47 +0000 Kris Buytaert 960 at http://127.0.0.1:8080/blog Nines , Damn Nines and More Nines http://127.0.0.1:8080/blog/nines-damn-nines-and-more-nines <p>Funny how different experiences lead to different evaluations of tools. The MySQL HA solutions <a href="http://www.mysqlperformanceblog.com/2009/10/16/finding-your-mysql-high-availability-solution-%E2%80%93-the-questions/" rel="nofollow">the MySQL Performanceblog</a> list, are almost listed in the complete opposited order of what my impressions are.</p> <p>Ok agreed, I should probably not put my MySQL NDB experiences from 2-3 years ago with multiple Query of deaths and more problems than you into account anymore , but back then went in the list Less stable than a single node. I've had NDB POC setups going down for much more than 05:16 minutes<br /> Ndb comes with a lot of restrictions, there are</p> <p>As for MySQL on DRBD, <a href="http://www.krisbuytaert.be/blog/mysql-and-drbd-often-say-no">I've said this before</a> , I love DRBD, but having to wait for a long InnoDB recovery after a failover just kills your uptime ,<br /> I remember being called by a customer during <a href="http://lefred.be/">Fred</a> last holiday who was waiting over 20 minutes for recovery , twice, so putting the DRBD/San setup second would not be my preference. But agreed .. it's only listed at 99.9% meaning almost 9 hours of downtime per year are allowed.</p> <p>On the other hand we've seen database uptime of MySQL MultiMaster setups with Heartbeat reaching better figures than 99.99% Heck I've seen single nodes achieve better than 99.99% :)</p> <p>So what does this teach us ... there is no golden rule for HA, lots of situations are different, it's the preferences of the customer, the size of the database, the kind of application , and much<br /> more .. you always need to think and evaluate the environment ...</p> http://127.0.0.1:8080/blog/nines-damn-nines-and-more-nines#comments cluster drbd ha linux-ha mysql nines Mon, 19 Oct 2009 21:46:41 +0000 Kris Buytaert 951 at http://127.0.0.1:8080/blog Everything is a fine whitespace problem ... http://127.0.0.1:8080/blog/everything-fine-whitespace-problem <p>Couple of days ago I was working on a Linux Heartbeat v2 setup.<br /> Upon inserting an XML snippet into the cib cib-adm started eating memory fast until the oom killer kicked in.</p> <p>The environment was running a fairly old heartbeat-2.0.8 version so I upgraded to heartbeat-2.1.4-2.1 and there I got a nice warning that my XML sintax wasn't correct.</p> <p>There was a whitespace in the XML syntax.</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&lt;expression attribute=&quot;#replicationvalue&quot; id=&quot;is_lagged&quot; operation =&quot;gt&quot; ... &gt;&lt;</div></li></ol></pre></div></p> <p>Removing the whitespace solves the problem, also on the older version. So the problem is already fixed upstream.. but you might run into it anyhow.</p> http://127.0.0.1:8080/blog/everything-fine-whitespace-problem#comments ha heartbeat linux-ha whitespace xml Mon, 02 Feb 2009 21:00:36 +0000 Kris Buytaert 869 at http://127.0.0.1:8080/blog Wholesale High Availability http://127.0.0.1:8080/blog/node/750 <p><a href="http://techthoughts.typepad.com/managing_computers/2008/10/using-virtualization-to-provide-ha-at-wholesale.html" rel="nofollow">Alan</a> just coined WholeSale HA. The idea of rebooting a whole virtual machine rather than just failing over 1 service.</p> <p>He wants to have the best of both worlds in 1 framework, he however doesn't specify what parts he likes from the WholeSale HA setup</p> <p>Yes you want to use it coupled with hardware predictive failure analysis tools. In order to achieve Higher Availabilty, but I don't think the WholeSale HA part is real HA.</p> <p>WholeSale HA isn't going to be fast enough for most of the business critical environments.<br /> You simply cannot afford to reboot or even boot a full machine and the related downtime that brings for your service.</p> <p>So yes a best effort combination, but with a strong focus on the application state would be preferred. WholeSale is a good start .. but it's definitely not where you want to stop.</p> http://127.0.0.1:8080/blog/node/750#comments alan robertson ha high-availability linux-ha vapourware virtualization Sat, 25 Oct 2008 13:56:28 +0000 Kris Buytaert 750 at http://127.0.0.1:8080/blog Bug in ifconfig ? http://127.0.0.1:8080/blog/bug-ifconfig <p>So earlier this week I ran into the weirdest problem with Linux-HA. Heartbeat was happily adding an IP address as an active resource so one of my nodes when needed, but upon removal it failed to remove the IP from the stack. Further debugging learned that the Heartbeat scripts claimed the ip wasn't on the actual stack.</p> <p>It was.. but it the output from ifconfig was different from what it expected it to be.</p> <p>Heartbeat checks the output of ifconfig and expects to find the IP address it added itselve to be on a :0 or similar interface. Now ifconfig only seems output 8 characters for the interface name Which means that when you have an interface called eth0:0 the output perfectly lists it and heartbea<br /> t is smart enough to remove the ip again when the node goes to standby. If however you have a vlan with 3 digits on a bond interface Heartbeat will add :0 to bond0.129 , the Heartbeat resource will add the ip address perfectly but opon checking all the :0 interfaces the bond0.129:0 interface won't be parsed as ifconfig outputs it as bond0.129 , hence resulting in a potential painfull situation where 2 nodes still share an IP address.</p> <p>So where's the actual problem ifconfig, or heartbeat, I'd say both, but the easiest fix will be in Heartbeat, afterall there are other preferred ways of adding an ip addres to an interface. ip addr add comes to mind :)</p> <p>So I filed a <a href="http://developerbugs.linux-foundation.org/show_bug.cgi?id=1968" rel="nofollow">bug report</a> :)</p> http://127.0.0.1:8080/blog/bug-ifconfig#comments ha heartbeat ifconfig ip linux-ha opensource Wed, 24 Sep 2008 15:27:26 +0000 Kris Buytaert 730 at http://127.0.0.1:8080/blog Integrating HA and Virtualization http://127.0.0.1:8080/blog/node/533 <p><a href="http://techthoughts.typepad.com/managing_computers/2007/12/how-managed-vir.html ">Alan Robertson</a> is discussing how Managed Virtualization (including HA) conflicts with System Management</p> <p>He has some interesting points regarding managing infrastructure , in his vision there are just too much layers that don't talk to eachother .<br /> He also points out some of the issues with CIM and SNMP .</p> <p>Alan thinks the ideal way to go is to have your HA solution manage your Virtualization also.</p> <p>I`m wondering if this doesn't add too much complexity.</p> <p>If you are already making sure the services in your virtual machines are highly available, then why would you want to add another layer of complexity ? Surely the idea of being able to migrate virtual machines around sounds tempting but do we really need that extra layer of complexity ? </p> <p>I've explained that migrating a virtual machine to another server won't help you when your apps crash or when your physical server fails.</p> <p>But keeping an overview of which services are running where from 1 place seems like an interesting idea. </p> <p>I've been tinkering about using the resource concept of Linux-HA however to serve another purpose than pure high availability. You might want to use its constraints to define how many virtual machines should run on and how much resources they can use on a certain physical machine. Hence create a loadbalancing infrastructure with it.</p> <p>(I`m really really hoping someone now replies to this with a url which gives me a HAResource that does Live Migration :))</p> http://127.0.0.1:8080/blog/node/533#comments high-availability linux-ha virtualization Mon, 17 Dec 2007 20:59:32 +0000 Kris Buytaert 533 at http://127.0.0.1:8080/blog