Everything is a Freaking DNS problem

Devops Needs Sushi

Heartbeat

Ensure Running

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

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.

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.)

High Availability MySQL Cookbook , the review

When I read on the internetz that Alex Davies was about the publish a Packt book on MySQL HA I pinged my contacts at Packt and suggested that I’d review the book .

I’ve ran into Alex 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.

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.

Heartbeat 2 OpenAIS

While upgrading a pretty recent Heartbeat cluster to OpenAis earlier today I ran into the following weird situation\

1. Last updated: Fri Oct 16 08:50:03 2009
2. Stack: openais
3. Current DC: CO_NMS-1 - partition with quorum
4. Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7
5. 4 Nodes configured, 2 expected votes
6. 1 Resources configured.
7. ============

9. Online: [ CO_NMS-1 CO_NMS-2 ]
10. OFFLINE: [ co_nms-1 co_nms-2 ]

or

1. crm(live)node# show
2. co_nms-1(5c48ab4f-767f-e2dc-20ec-5969cddad152): normal
3. co_nms-2(922ff786-eca9-bed0-d79d-8222727a2c5b): normal
4. CO_NMS-1: normal
5. CO_NMS-2: normal

Whohoo.. OpenAIS must have realized I have upperase and lowercase cores :)

Everything is a fine whitespace problem ...

Couple of days ago I was working on a Linux Heartbeat v2 setup.
Upon inserting an XML snippet into the cib cib-adm started eating memory fast until the oom killer kicked in.

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.

There was a whitespace in the XML syntax.

1. <expression attribute="#replicationvalue" id="is_lagged" operation ="gt"  ... ><

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.

Bug in ifconfig ?

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.

It was.. but it the output from ifconfig was different from what it expected it to be.