Versions Compared

Key

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

...

Upgrade to opHA-MB 5.1.0 can be done from infrastructure

  • New to opHA/opHA-MB ----- Install to new servers

  • Running opHA 4.X ----- Upgrade existing servers, running opHA 4.x

Upgrade to opHA-5.1.0 with no opHA

...

Prerequisites

IMPORTANT: All the servers should be setup with the following

...

b. MongoDB 6 installed

c. The role of the vm server on which opHA-5.1.0 needs to be installed should be known and appropriately set (opha_role) in opCommon.json

d. opHA-MB licenses to be installed.

...

Editing the Role of the instance in opCommon.json

The default value of opha_role in opCommon.json is Standalone

...

  1. Edit Configuration: Update the /etc/nats-server.conf file with the following settings:

    1. On Main Primary:

      1. server_name: opha-dev1.opmantek.net

      2. host: "opha-dev1.opmantek.net"

      3. routes: [
        # secondary primary
        "nats://opha-dev6.opmantek.net:6222"
        # arbiter
        "nats://opha-dev2.opmantek.net:6222"
        ]

    2. On Secondary Primary:

      1. server_name: opha-dev6.opmantek.net

      2. host: "opha-dev6.opmantek.net"

      3. routes: [
        # main primary
        "nats://opha-dev1.opmantek.net:6222"
        # arbiter
        "nats://opha-dev2.opmantek.net:6222"
        ]

    3. On Arbiter:

      1. server_name: opha-dev2.opmantek.net

      2. host: "opha-dev2.opmantek.net"

      3. routes: [
        # main primary
        "nats://opha-dev1.opmantek.net:6222"
        # secondary primary
        "nats://opha-dev6.opmantek.net:6222"
        ]

  2. Sample file for Main Primary:-

    Code Block
    languagejson
    server_name: "opha-dev1.opmantek.net"  #The local server  
    http_port: 8222 
    listen: 4222 
    jetstream: enabled 
    
    #tls {
    #    cert_file: "<path>"
    #    key_file:  "<path>"
    #    #ca_file:   "<path>"
    #    verify: true
    #}
    
    log_file: "/var/log/nats-server.log"
    
    accounts { 
      $SYS { 
        users: [ 
          { user: "admin",
            pass: "password" 
          } 
        ] 
      } 
      ophad: { 
        users: [ 
            { user: "omkadmin", password: "op42opha42" } 
        ] 
        jetstream: enabled 
      } 
    } 
    
    jetstream { 
      store_dir: "/opt/nats/storage" 
      max_memory_store: 1028M 
      max_file_store: 1028M 
    } 
    cluster { 
      name: "C1" 
      host: "opha-dev1.opmantek.net"  #The current host 
      # the current server 
      listen: "0.0.0.0:6222" 
      routes: [ 
        # secondary primary
        "nats://opha-dev6.opmantek.net:6222" 
        # server with the arbiter 
        "nats://opha-dev2.opmantek.net:6222" 
        # other servers 
      ] 
    }

...

Upgrade to opHA-5.1.0 from opHA 4.X

Prerequisites

IMPORTANT: All the servers should be setup with the following

...

d. opHA-MB licenses to be installed.

Editing the Role of the instance in opCommon.json

The default value of opha_role in opCommon.json is Standalone

...