JBoss comes with three different ready-to-use server configurations: minimal, default and all. You can enable clustering in the all configuration only. A cluster-service.xml file in the /deploy folder describes the configuration for the default cluster partition. When you install the User Application and indicate to the installation program that you want to install into a cluster, the installation program makes a copy of the all configuration, names the copy IDM by default, and installs the User Application into this configuration.
To ensure performance of the cluster and the workflow engine, every server in the cluster should use the same partition name and partition UDP group. Also, each server in the cluster must be started with a unique ID for the workflow engine, because clustering for the workflow engine works independently of the User Application cache framework.
Open the JBoss startup script, by default located in the directory where you downloaded the User Application files.
Linux: start-jboss.sh
Windows: start-jboss.bat
Add the following text to the script:
start run.bat -c IDM -Djboss.partition.name=PartitionName- Djboss.partition.udpGroup=UDP_Group -Dcom.novell.afw.wf.engine-id=Engine_ID
where
PartitionName represents the name of the partition, such as Example_Partition.
UDP_Group represents the User Datagram Protocol (UDP) group for the partition, such as 228.3.2.1.
Engine_ID represents the unique ID of the workflow engine, such as Engine1.
Close and save the setup script.
All nodes in the JBoss cluster must access the same database instance. Each time that you install the User Application to a cluster node, specify the same database name, host name or IP address, and port of the server on which the database for the User Application is installed.
The Identity Manager User Application encrypts sensitive data using a master key. All User Applications in a cluster must use the same master key. This section helps you ensure that all User Applications in a cluster use the same master key.
For more information about creating the master key, see Step 31. For more information about encrypting sensitive data in the User Application, see “Encryption of Sensitive User Application Data” in the User Application Administration Guide.
Install the User Application on the first node in the cluster.
In the Security - Master Key window of the installation program, note the location of the master-key.txt file that will contain the new master key for the User Application. By default, the file is in the installation directory.
Install the User Application on the other nodes in the cluster.
In the Security - Master Key window, click Yes and then click Next.
In the Import Master Key window, copy the master key from the text file that was created in Step 2.
After you install the User Applications in your cluster, you must enable the cluster in the User Application cluster configuration.
Ensure that all servers are stopped.
Start the first User Application in the cluster.
Log on as the User Application administrator.
Click Administration.
In the Application Configuration portal, click Caching.
In the Caching Management window, select True for Cluster Enabled.
Click Save.
Restart the server.
(Conditional) To use local settings, repeat this procedure for each server in the cluster.