Sun Java System Message Queue 3.7 UR1 Administration Guide

Adding Brokers to a Cluster

The procedure for adding a new broker to a cluster depends on whether the cluster uses a cluster configuration file.

ProcedureTo Add a New Broker to a Cluster Using a Cluster Configuration File

  1. Add the new broker to the imq.cluster.brokerlist property in the cluster configuration file.

  2. Issue the following command to any broker in the cluster:

    imqcmd reload cls

    This forces each broker to reload the cluster configuration, ensuring that all persistent information for brokers in the cluster is up to date. Note that it is not necessary to issue this command to every broker in the cluster; executing it for any one broker will cause all of them to reload the cluster configuration.

  3. (Optional) Set the value of the imq.cluster.url property in the broker’s file to point to the cluster configuration file.

  4. Start the new broker.

    If you did not perform Adding Brokers to a Cluster, use the -D option on the imqbrokerd command line to set the value of imq.cluster.url.

To Add a New Broker to a Cluster Without a Cluster Configuration File

Set the value of the following properties, either by editing the file or by using the -D option on the imqbrokerd command line: