Este conteúdo não está disponível no idioma selecionado.
Chapter 4. Clustering with Red Hat Decision Manager for design-time development environments
This section is specifically intended for Decision Central development environments where you want to cluster the Git repository. It is not necessary to create a clustered environment for Decision Server production environments.
Red Hat recommends that you consider clustering two or more computers to create a high availability clustered environment for design-time development environments. Doing this enhances collaboration and provides high availability.
For example, if clustering is configured and Developer X is authoring rules on Decision Central Node1 then Developer Y, who is working on Decision Central Node2, can see the rules authored by Developer X as they are created. Furthermore, all of the developers working on individual nodes of the cluster will see the same synchronized content.
In addition, clustering provides high availability in the rules development environment. If Developer X is working on Node1 and that node fails, Developer X’s work is preserved and visible on any other node of the cluster.
The following sections describe how to create a clustered Red Hat Decision Manager environment.
4.1. Setting up Elasticsearch Copiar o linkLink copiado para a área de transferência!
Elasticsearch is a highly scalable open source full-text search and analytics engine. It enables you to store, search, and analyze high volumes of data quickly and in near real time. In a Red Hat Decision Manager clustered environment, it enables you to perform complex and efficient searches across nodes. Set up Elasticsearch on the main node of the cluster.
Procedure
- Download and unzip the Elasticsearch installation file.
Replace the contents of the
elasticsearch/config/elasticsearch.ymlfile as follows, where<MAIN_NODE_IP>is the IP address of the main node of the cluster:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the following plug-in:
On Linux or UNIX-based systems, enter:
./bin/elasticsearch-plugin install x-pack
./bin/elasticsearch-plugin install x-packCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows, enter:
bin\elasticsearch-plugin.bat install x-pack
bin\elasticsearch-plugin.bat install x-packCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Run Elasticsearch on the main node:
On Linux or UNIX-based systems, enter:
./bin/elasticsearch
./bin/elasticsearchCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows, enter:
bin\elasticsearch.bat
bin\elasticsearch.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Activating ActiveMQ JMS broker Copiar o linkLink copiado para a área de transferência!
After you install Elasticsearch, you must activate ActiveMQ JMS broker on the main node of the cluster.
Prerequisite
Elasticsearch installed on the main node of the cluster
Procedure
Add the following properties to the
EAP_HOME/standalone/configuration/standalone.xmlfile:-
Add
<socket-binding name="activemq" port="61616"/>to the socket-binding-group element. -
Add
<remote-acceptor name="activemq-acceptor" socket-binding="activemq"/>in<server name="default">of the messaging-activemq subsytem element.
-
Add
- Complete the steps in Section 4.3, “Installing Decision Central on cluster nodes” on each node of the cluster.
4.3. Installing Decision Central on cluster nodes Copiar o linkLink copiado para a área de transferência!
Complete the steps in this section to install and run Decision Central on each node of the cluster.
Prerequisites
- An NFS-mounted directory available which all Red Hat Decision Manager nodes can access
- Elasticsearch installed on the main node of the cluster
- ActiveMQ JMS broker activated on the main node of the cluster
Procedure
- Install Decision Central on each node of the cluster. See Chapter 2, Installing Red Hat Decision Manager for information about installing Decision Central.
Edit the following properties in the
./standalone.xmlfile, where:-
<MAIN_NODE>is the IP address of the main node of the cluster -
<JMS_BROKER_USER>is a username for the JMS broker <JMS_BROKER_PASSWORD>is a password for the JMS brokerCopy to Clipboard Copied! Toggle word wrap Toggle overflow
-
On the main node of the cluster, in Red Hat JBoss EAP create a user with the
adminrole and a username and password that matches the values of <JMS_BROKER_USER> and <JMS_BROKER_PASSWORD> that you created in the previous step:<MAIN_NODE_EAP_HOME>/bin/./add-user.sh -a --user <JMS_BROKER_USER> --password <JMS_BROKER_USER> --role admin
$ <MAIN_NODE_EAP_HOME>/bin/./add-user.sh -a --user <JMS_BROKER_USER> --password <JMS_BROKER_USER> --role adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow To start Decision Central, enter one of the following commands on each node of the cluster:
On Linux or UNIX-based systems:
EAP_HOME/bin/standalone.sh
EAP_HOME/bin/standalone.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows:
EAP_HOME\bin\standalone.bat
EAP_HOME\bin\standalone.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow