2.5. Configuring and running Business Central in a cluster
After you install Red Hat JBoss EAP and Business Central you can use Red Hat Data Grid and the AMQ Broker to configure the cluster. Complete these steps on each node of the cluster.
These steps describe a basic cluster configuration. For more complex configurations, see the Red Hat JBoss EAP 7.3 Configuration Guide.
Prerequisites
- Red Hat Data Grid 7.3 is installed as described in 「Installing and configuring Red Hat Data Grid」.
- AMQ Broker is installed and configured, as described in 「Downloading and configuring AMQ Broker」.
- Red Hat JBoss EAP and Red Hat Decision Manager are installed on each node of the cluster as described in 「Downloading and extracting Red Hat JBoss EAP 7.3 and Red Hat Decision Manager」.
- An NFS server with a mounted partition is available as described in 「Configuring an NFS server」.
Procedure
Mount the directory shared over NFS as
/data. Enter the following commands as the root user:mkdir /data mount <NFS_SERVER_IP>:<DATA_SHARE> /data
Replace <NFS_SERVER_IP> with the IP address or hostname of the NFS server machine. Replace <DATA_SHARE> with the share name that you configured (for example,
/opt/kie/data).-
Open the
EAP_HOME/standalone/configuration/standalone-full.xmlfile in a text editor. Edit or add the properties under the
<system-properties>element and replace the following placeholders:-
<AMQ_USER>and<AMQ_PASSWORD>are the credentials that you defined when creating the AMQ Broker. -
<AMQ_BROKER_IP_ADDRESS>is the IP address of the AMQ Broker. <INFINISPAN_NODE_IP>is the IP address where Red Hat Data Grid is installed.<system-properties> <property name="appformer-jms-connection-mode" value="REMOTE"/> <property name="appformer-jms-username" value="<AMQ_USER>"/> <property name="appformer-jms-password" value="<AMQ_USER_PASSWORD>"/> <property name="appformer-jms-url" value="tcp://<AMQ_BROKER_IP_ADDRESS>:61616?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1"/> <property name="org.appformer.ext.metadata.infinispan.port" value="11222"/> <property name="org.appformer.ext.metadata.infinispan.host" value="<INFINISPAN_NODE_IP>"/> <property name="org.appformer.ext.metadata.infinispan.realm" value="ApplicationRealm"/> <property name="org.appformer.ext.metadata.infinispan.cluster" value="kie-cluster"/> <property name="org.appformer.ext.metadata.index" value="infinispan"/> <property name="org.uberfire.nio.git.dir" value="/data"/> <property name="es.set.netty.runtime.available.processors" value="false"/> </system-properties>
-
Optional: If the Red Hat Data Grid deployment requires authentication, edit or add the properties under the
<system-properties>element and replace the following placeholders:-
<SERVER_NAME>is the server name specified in your Red Hat Data Grid server configuration. <SASL_QOP>is the combination of auth, auth-int and auth-conf values for your Red Hat Data Grid server configuration.<property name="org.appformer.ext.metadata.infinispan.server.name" value="<SERVER_NAME>"/> <property name="org.appformer.ext.metadata.infinispan.sasl.qop" value="<SASL_QOP>"/> <property name="org.appformer.ext.metadata.infinispan.username" value=""/> <property name="org.appformer.ext.metadata.infinispan.password" value=""/>
-
-
Save the
standalone-full.xmlfile. To start the cluster, navigate to
EAP_HOME/binand enter one of the following commands:On Linux or UNIX-based systems:
$ ./standalone.sh -c standalone-full.xml
On Windows:
standalone.bat -c standalone-full.xml