Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

...

Introduction

opHA 5 introduces the concept of a Primary & multiple Poller servers and a message bus:

...

  1. Backup Configuration: Make a backup copy of the opCommon.json file before making any changes.

  2. Add NATS Server Configuration: Ensure the following configuration is included in opCommon.json on all servers. In the below example we have added the main-primary in the nats_server string int the “database“ json object

    Code Block
    languagejson
    "nats_server": "opha-dev1.opmantek.net:4222"

    IMPORTANT

    Delete the following line

  3. Code Block
    languagejson
    "db_mongo_cluster": [],

...

...

4. MongoDB Setup (Main-Primary Only)

The following steps should be performed only on the Main-Primary MongoDB instance.

...

Code Block
systemctl restart mongod

...

5. Starting Services

...

5.1 Start NATS

Start the NATS service on the Main-Primary server ONLY:

Code Block
systemctl start nats-server

...

5.2 Restart mongod on Pollers and Mirrors only

After configuration changes, restart mongod on all Mirrors and Pollers servers ONLY :

Code Block
systemctl restart mongod

...

5.3 Restart services on all servers

After configuration changes, restart the services on all the servers :

Code Block
systemctl restart nmis9d opchartsd opeventsd omkd ophad

...

6. Update License

To obtain a license please contact firstwave sales

...

  1. opHA-MB for NMIS & opCharts (This license is required for messagebus to run), nmis and opCharts data are synced from all poller/mirrors to the main-primary using MessageBus. In replication mode, If the main-primary were to go down the secondary primary will retain the nmis and opCharts data.

    image-20241108-050221.png
  2. opHA-MB for opEvents (This license is an add-on for opEvents). With this add-on opEvents will use MessageBus to sync opEvents data from each poller/mirror to the main-primary and in replication mode opEvents data is synced to the secondary-primary. In replication mode, If the main-primary were to go down the secondary primary will retain the opEvents data.

    image-20241107-234837.png

...

7 Restart ophad on the main-primary

Code Block
systemctl restart ophad

...

8 Start the Poller and Mirrors

Execute the following command on the poller and mirror servers.

Code Block
cd /usr/local/omk/bin
./ophad cmd producer start

...

9. Final Steps

  1. Accept EULAs: Make sure when you login to each server to confirm that all End User License Agreements (EULAs) are accepted.

...