Simple failover cluster using UCARP on Ubuntu (Heartbeat Alternative)

In this tutorial, I’ll show you the steps to create a simple failover cluster on Ubuntu using CARP. To make the things meaningful,we’ll create the cluster for Apache service but you can use it for any other service, which relay on IP.


Here is my Setup:

PrimarySrv: This is the main server, where I configured the apache and which act as Master (IP:
SecondarySrv: 2nd Apache Server where I configured the apache exactly like on PrimarySrv (IP : : Virtual IP address,created using Ucarp. Continue reading “Simple failover cluster using UCARP on Ubuntu (Heartbeat Alternative)” »


MySQL Master-Master Replication with Heartbeat

Setting Up The Two Base Systems

In this setup there will be one master server (which runs the ISPConfig control panel interface) and one slave server which mirrors the web (apache), email (postfix and dovecot) and database (MySQL) services of the master server.

To install the clustered setup, we need two servers with a Debian 6.0 minimal install.

Install only steps 1 – 8 of the perfect server tutorial and not the other steps as they differ for a clustered setup!

In my example I use the following hostnames and IP addresses for the two servers:

Master Server

Hostname: server1.example.tld

Slave server

Hostname: server2.example.tld

Whereever these hostnames or IP addresses occur in the next installation steps you will have to change them to match the IP's and hostnames of your servers.

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet. Simply run Continue reading “MySQL Master-Master Replication with Heartbeat” »


Configuring A High Availability Cluster (Heartbeat) On CentOS

This guide shows how you can set up a two node, high-availability HTTP cluster with heartbeat on CentOS. Both nodes use the Apache web server to serve the same content.

Pre-Configuration Requirements

Assign hostname node01 to primary node with IP address to eth0.
Assign hostname node02 to slave node with IP address

Note: on node01

uname -n

must return node01.

On node02

uname -n

must return node02. Continue reading “Configuring A High Availability Cluster (Heartbeat) On CentOS” »