...
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
...
Edit Configuration: Update the
/etc/nats-server.conffile with the following settings:On Main Primary:
server_name: opha-dev1.opmantek.net
host: "opha-dev1.opmantek.net"
routes: [
# secondary primary
"nats://opha-dev6.opmantek.net:6222"
# arbiter
"nats://opha-dev2.opmantek.net:6222"
]
On Secondary Primary:
server_name: opha-dev6.opmantek.net
host: "opha-dev6.opmantek.net"
routes: [
# main primary
"nats://opha-dev1.opmantek.net:6222"
# arbiter
"nats://opha-dev2.opmantek.net:6222"
]
On Arbiter:
server_name: opha-dev2.opmantek.net
host: "opha-dev2.opmantek.net"
routes: [
# main primary
"nats://opha-dev1.opmantek.net:6222"
# secondary primary
"nats://opha-dev6.opmantek.net:6222"
]
Sample file for Main Primary:-
Code Block language json 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
...