Install without Caching LAM

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 servers 6, 7, 8, 9 and 10:

HA_LAMnocache.png
  • LAM 1: Server 9

  • LAM 2: Server 10

  • RabbitMQ Node 1: Server 6

  • RabbitMQ Node 2: Server 7

  • RabbitMQ Node 3: Server 8

Fully distributed installation

See Distributed HA Installation for a reference diagram and steps to achieve a fully distributed installation.

Minimally distributed installation

For a minimally distributed installation follow the instructions below, replacing server 6, 7, 8, 9 and 10 with the relevant values for your architecture.

Install LAM 1

  1. Install Moogsoft AIOps components on the LAM 1 server.

    On server 9 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 
  2. On server 9, 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" : "<server 6 hostname>", "port" : 5672},
        {"host" : "<server 7 hostname>", "port" : 5672},
        {"host" : "<server 8 hostname>", "port" : 5672}
    ],
    ...
    "cache_on_failure" : true,
    ...
    "search" :
        {
    ...
    "nodes" : [
        {"host" : "<server 6 hostname>", "port" : 9200},
        {"host" : "<server 7 hostname>", "port" : 9200},
        {"host" : "<server 8 hostname>", "port" : 9200}
    ]
    ...
    "failover" :
        {
        "persist_state" : true,
        "hazelcast" :
            {
            "hosts" : ["<server 6 hostname>","<server 7 hostname>"],
            "cluster_per_group" : true
            }
        "automatic_failover" : true,
        }
    ...
    "ha": 
        { "cluster": "PRIMARY" }
  3. Install, configure and start HA Proxy on the LAM 1 server to connect to Percona XtraDB Cluster.

Install LAM 2

  1. Install Moogsoft AIOps components on the LAM 2 server.

    On server 10 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
  2. On server 10, 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" : "<server 7 hostname>", "port" : 5672},
        {"host" : "<server 6 hostname>", "port" : 5672},
        {"host" : "<server 8 hostname>", "port" : 5672}
    ],
    ...
    "cache_on_failure" : true,
    ...
    "search" :
        {
    ...
    "nodes" : [
        {"host" : "<server 7 hostname>", "port" : 9200},
        {"host" : "<server 6 hostname>", "port" : 9200},
        {"host" : "<server 8 hostname>", "port" : 9200}
    ]
    ...
    "failover" :
        {
        "persist_state" : true,
        "hazelcast" :
            {
            "hosts" : ["<server 7 hostname>","<server 6 hostname>"],
            "cluster_per_group" : true
            }
        "automatic_failover" : true,
        }
    ...
    "ha": 
        { "cluster": "SECONDARY" }
  3. Install, configure and start HA Proxy on the LAM 2 server to connect to 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.