Setting up clusters for JBoss Application Server 5


To improve the performance and availability of your BMC IT Business Management environment, you can run it on a cluster.

Note

To run the product on a cluster, the system uses IPv4 for JBoss Application Server 5.

To set up a cluster

  1. Install BMC IT Business Management and JBoss on each node that you want to include in a cluster.
    • When you install the products on the first or standalone node, select all the following check boxes:
      • BMC IT Business Management Suite 8.1.01 Installation
      • Install BMC IT Business Management Core Components 8.1.01
      • Install Configuration for BMC IT Business Management Application Service
      • Install Configuration for JBOSS

        first node 1.png

         

    • When you install the products on the subsequent nodes, select only the following check boxes:
      • Install Configuration for BMC IT Business Management Application Service
      • Install Configuration for JBOSS

        subs. node 1.png

        After you complete the standard installation wizard steps, the system automatically sets up a cluster, where all subsequent nodes refer to the BMC Remedy AR System server and database located at the first node.Click on the following image to expand it.
        scheme 2.png

  2. Enable the cluster cache invalidation as follows:
    1. Open the <JBOSS_HOME>/jboss-as/server/production/conf/standardjboss.xml file.
    2. In the <container-name>cmp2.x jdbc2 pm</container-name> line, change the <min-capacity> and <max-capacity> parameters to 1.

After the installation, you can edit the cluster configuration information in the following files:

OS

File

Parameter

Description

Windows

run.conf.bat
(located at ...\jboss-as\bin)

- Djboss.messaging.ServerPeerID

The individual unique number assigned to each node in a group (and, correspondingly, in a cluster)

Windows

ehcache.xml
(located at ...\jboss-as\server\production\conf)

multicastGroupAddress

The IP address that is accessible from this server. The system uses this IP address to replicate caches in a cluster. The default IP address is 224.0.0.251.

Note: the multicast IPs range from 224.0.0.0 to 239.255.255.255. If you are experiencing  the slow response time from your default multicast IP, change it to another IP from this range.
 

Linux

run.conf (located at <JBOSS_HOME>/bin)

-Djboss.messaging.ServerPeerID=1

The individual unique number assigned to each node in a group (and, correspondingly, in a cluster)

To find out which multicast group your server is subscribed to, you can run the following commands:

  • (Windows) netsh interface ip show joinsClick on the following image to expand it.
    on Windows.png
  • (Linux) netstat -gClick on the following image to expand it.
    on Linux.png

The ehcache.xml file comes with a built-in RMI-based distribution system. The listener component is RMICacheManagerPeerListener, which is configured using the RMICacheManagerPeerListenerFactory tag in the ehcache.xml file. The automatic peer discovery process relies on a multicast IP address.

Note

The multicast IP address can be blocked by routers. Also, the virtualization technologies like Xen and VMware might block the multicast IP address. In this case, you must enable the multicast manually.

You can also run JBoss from command line and specify the - g kdomain, where kdomain corresponds to the server group name, and - Djboss.messaging.ServerPeerID parameters from there.

Example
run.bat -c production -b 0.0.0.0 -g ITBM -Djboss.messaging.ServerPeerID=1

 

 

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*