Install LAMs
In HA architecture, LAM 1 and LAM 2 run in an active / passive mode for a HA polling pair, and in active / active mode for a HA receiving pair.
HA architecture
In our distributed HA installation, the LAM components are installed on the LAM 1 and LAM 2 servers:
Refer to the Distributed HA system Firewall for more information on connectivity within a fully distributed HA architecture.
Install LAM 1
-
Install Moogsoft AIOps components on the LAM 1 server.
On LAM 1 install the following Moogsoft AIOps components:
yum -y install moogsoft-common-7.3* \ moogsoft-integrations-7.3* \ moogsoft-utils-7.3*
Edit your
~/.bashrc
file to contain the following lines:export MOOGSOFT_HOME=/usr/share/moogsoft export APPSERVER_HOME=/usr/share/apache-tomcat export JAVA_HOME=/usr/java/latest export PATH=$PATH:$MOOGSOFT_HOME/bin:$MOOGSOFT_HOME/bin/utils
Source the
~/.bashrc
file:source ~/.bashrc
-
On LAM 1, edit
$MOOGSOFT_HOME/config/system.conf
and set the following properties. Substitute the name of your RabbitMQ zone, the Core 1, Core 2 and Redundancy server hostnames, and the cluster names:"mooms" : { ... "zone" : "<zone>", "brokers" : [ {"host" : "<Core 1 server hostname>", "port" : 5672}, {"host" : "<Core 2 server hostname>", "port" : 5672}, {"host" : "<Redundancy server hostname>", "port" : 5672} ], ... "cache_on_failure" : true, ... "search" : { ... "nodes" : [ {"host" : "<Core 1 server hostname>", "port" : 9200}, {"host" : "<Core 2 server hostname>", "port" : 9200}, {"host" : "<Redundancy server hostname>", "port" : 9200} ] ... "failover" : { "persist_state" : true, "hazelcast" : { "hosts" : ["<Core 1 server hostname>","<Core 2 server hostname>"], "cluster_per_group" : true } "automatic_failover" : true, } ... "ha": { "cluster": "PRIMARY" }
-
Install, configure and start HA Proxy on LAM 1 to connect to the Percona XtraDB Cluster.
Install LAM 2
-
Install Moogsoft AIOps components on the LAM 2 server.
On LAM 2 install the following Moogsoft AIOps components:
yum -y install moogsoft-common-7.3* \ moogsoft-integrations-7.3* \ moogsoft-utils-7.3*
Add the following code to the
~/.bashrc
file:export MOOGSOFT_HOME=/usr/share/moogsoft export APPSERVER_HOME=/usr/share/apache-tomcat export JAVA_HOME=/usr/java/latest export PATH=$PATH:$MOOGSOFT_HOME/bin:$MOOGSOFT_HOME/bin/utils
Source the
~/.bashrc
file:source ~/.bashrc
-
On LAM 2, edit
$MOOGSOFT_HOME/config/system.conf
and set the following properties. Substitute the name of your RabbitMQ zone, the server hostnames, and the cluster names:"mooms" : { ... "zone" : "<zone>", "brokers" : [ {"host" : "<Core 2 server hostname>", "port" : 5672}, {"host" : "<Core 1 server hostname>", "port" : 5672}, {"host" : "<Redundancy server hostname>", "port" : 5672} ], ... "cache_on_failure" : true, ... "search" : { ... "nodes" : [ {"host" : "<Core 2 server hostname>", "port" : 9200}, {"host" : "<Core 1 server hostname>", "port" : 9200}, {"host" : "<Redundancy server hostname>", "port" : 9200} ] ... "failover" : { "persist_state" : true, "hazelcast" : { "hosts" : ["<Core 2 server hostname>","<Core 1 server hostname>"], "cluster_per_group" : true } "automatic_failover" : true, } ... "ha": { "cluster": "SECONDARY" }
-
Install, configure and start HA Proxy on LAM 2 to connect to the Percona XtraDB Cluster.
Configure a new backend LAM integration as HA on LAM 1 and LAM 2
Follow the instructions in Set Up LAMs for HA.