第3章 Decision Server clusters in a runtime environment
The primary benefit of clustering a Decision Server runtime environment is load balancing. If activity on one node of the cluster increases, that activity can be shared among the other nodes of the cluster to improve performance.
To create a Decision Server clustered runtime environment, you download and extract Red Hat JBoss EAP 7.2 and Decision Server. Then, you configure Red Hat JBoss EAP 7.2 for a cluster, start the cluster, and install Decision Server on each cluster node.
If desired, you can then cluster the headless Decision Manager controller.
3.1. Downloading and extracting Red Hat JBoss EAP 7.2 and Decision Server
Complete the steps in this section to download and install Red Hat JBoss EAP 7.2 and Decision Server for installation in a clustered environment.
Procedure
Download Red Hat JBoss EAP 7.2 on each node of the cluster:
Navigate to the Software Downloads page in the Red Hat Customer Portal (login required) and select the product and version from the drop-down options:
- Product: Red Hat JBoss EAP
- Version: 7.2
-
Click Download next to Red Hat JBoss Enterprise Application Platform 7.2.0. (
jboss-eap-7.2.0.zip
).
-
Extract the
jboss-eap-7.2.0.zip
file. Thejboss-eap-7.2/jboss-eap-7.2
directory is referred to asEAP_HOME
. - Download and apply the latest Red Hat JBoss EAP patch, if available.
Download Decision Server:
Navigate to the Software Downloads page in the Red Hat Customer Portal and select the product and version from the drop-down options:
- Product: Decision Manager
- Version: 7.3
-
Download Red Hat Decision Manager 7.3.0 Decision Server for All Supported EE8 Containers (
rhdm-7.3.0-kie-server-ee8.zip
).
-
Extract the
rhdm-7.3.0-kie-server-ee8.zip
archive to a temporary directory. In the following examples this directory is calledTEMP_DIR
. Copy the
TEMP_DIR/rhdm-7.3.0-kie-server-ee8/rhdm-7.3.0-kie-server-ee8/kie-server.war
directory toEAP_HOME/standalone/deployments/
.警告Ensure the names of the Red Hat Decision Manager deployments you are copying do not conflict with your existing deployments in the Red Hat JBoss EAP instance.
-
Copy the contents of the
TEMP_DIR/rhdm-7.3.0-kie-server-ee8/rhdm-7.3.0-kie-server-ee8/SecurityPolicy/
toEAP_HOME/bin
. When asked to overwrite files, click Replace. -
In the
EAP_HOME/standalone/deployments/
directory, create an empty file namedkie-server.war.dodeploy
. This file ensures that Decision Server is automatically deployed when the server starts. - Download and apply the latest Red Hat Decision Manager patch, if available.
-
Navigate to the
EAP_HOME/bin
directory. Create a user with the
kie-server
role that you will use to log in to Decision Server.$ ./add-user.sh -a --user <USERNAME> --password <PASSWORD> --role kie-server
- Make a note of your user names and passwords.
To start the cluster, navigate to
EAP_HOME/bin
and 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