Previous Topic: Add Cluster Nodes  for JBoss 6.1Next Topic: Create the Master Node for JBoss 6.1


Configure Journal Files

To implement high availability on JBoss 6.1 EAP, CA Identity Manager uses the HornetQ messaging provider. HornetQ persists messages using journal files without using a database. CA Identity Manager stores journal files based on the following installation choice:

Journal Files for Replication

If you chose Replication during the installation, the installation program configured the first node with two HornetQ instances, a live instance and a backup. On each additional node, you configure live and backup HornetQ instances.

Follow these steps:

  1. On the second node in the cluster, navigate to the following location:
    jboss_home/standalone/configuration
    
  2. Edit the standalone-full-ha.xml file.
  3. Replace each occurrence of node1 with node2.
  4. Replace each occurrence of node2 with node1.
  5. For a cluster of three or more nodes, edit standalone-full-ha.xml in a similar manner.

    For example, make these changes for a three-node cluster:

Journal Files for a Shared Store

If you chose Shared Store during the installation, you configure two HornetQ instances, a live instance and a backup, on each node. You configure each instance to store journal files on a Storage Area Network (SAN) Server.

Follow these steps:

  1. Create a SAN Server with paths to each node.

    For example, if you have a two-node cluster, you configure a SAN Server with paths of //network-path/node1 and //network-path/node2.

  2. On the first node, navigate to the following location:
    jboss_home/standalone/configuration
    
  3. Edit the standalone-full-ha.xml file.
  4. Locate the <hornetq-server> section of the file.
  5. Uncomment the section and set the paths for the correct directories.
    <!-- un mark this for node 1 and set your path until node1jr
    <paging-directory path="//network/path/node1jr/paging"/>
       <bindings-directory path="//network/path/node1jr/bindings"/>
       <journal-directory path="//network/path/node1jr/journal"/>
       <large-messages-directory path="//network/path/node1jr/large-messages"/>
    -->
    
  6. Locate the <hornetq-server name="backup"> section of the file.
  7. Uncomment this section and set the paths for the correct directories.
    <!-- un mark this for node 1 backup (which is node2jr) and set your path until node2jr
     <paging-directory path="//network/path/node2jr/paging"/>
     <bindings-directory path="//network/path/node2jr/bindings"/>
     <journal-directory path="//network/path/node2jr/journal"/>
     <large-messages-directory path="//network/path/node2jr/large-messages"/>
    -->
    
  8. Repeat this procedure for the second node in the cluster, replacing node1 with node2 and node2 with node1.
  9. For a cluster of three or more nodes, edit the standalone-full-ha.xml file in a similar manner.

    For example, in a three-node cluster, make these changes: