Set Up High-Availability Open MQ with MySQL Cluster
Version 1.0
Author: Phuong Nguyen
Last edited 07/15/2008
Introduction
This guide shows how to configure Open MQ with two brokers and MySQL Cluster
with two storage nodes and one management node that provides high-availability
for a minimal hardware configuration. This setup requires four servers.
Server Topology
MySQL Cluster requires a minimum of three servers to provide true redundancy:
two MySQL/NDB servers and one management server. As the management server is a
light-weight process and does not use many resources, we can also run MQ
Broker instance 1 on the same machine. This means that a fourth server
is needed for the 2nd Broker instance. This topology is known as the
Separate Tier Topology; the Broker instances and the MySQL/NDB
nodes are on different machines (hence the name separate tier).
Another variation known as the Co-located Topology, run the Broker instance
and MySQL server on the same machine (hence the name co-located) so the NDB
node can run by itself on a single server. For simplicity, we'll use the
Separate Tier Topology in this setup.
Server
3
Broker Instance 1
|
Management Node
|
|
Server
4
|
Server
1
|
Server
2
|
Step 1: Download and install MySQL Cluster 6.2
Download the appropriate MySQL Cluster binary distribution for you platform.
Download
link
Alex Davies has written an excellent writeup on
MySQL
Cluster: Two webserver setup. Please follow the steps described in
his guide to setup MySQL Cluster with two storage nodes. If all goes well, you
should have MySQL/NDB node running on both Server 1 and Server 2 with the
management node running on Server 3.
Step 2: Download Open MQ 4.2
Download the appropriate Open MQ binary distribution for you platform.
Download
link
Step 3: Install Open MQ Community Bundles (Compressed Archive)
Do the following to install MQ on both Server 3 and Server 4: