...
Backup Configuration: Make a backup copy of the
opCommon.jsonfile before making any changes.Add NATS Cluster Configuration: Ensure the following configuration is included in
opCommon.jsonon all servers. In the below example we have added the Main Primary, arbiter and Secondary Primary FQDNs and port/s to be utilized in the nats_cluster attribute, you can find this in the database section.Code Block language json "nats_cluster": [ "opha-dev1.opmantek.net", "opha-dev2.opmantek.net", "opha-dev6.opmantek.net" ]
Ensure
"nats_num_replicas": 3 instead of 1 in /usr/local/omk/conf/opCommon.json.
Ensure there is only one instance of “nats_num_replicas” and "nats_cluster" in opCommon.jsonCode Block "database" : { "nats_num_replicas": 3, "nats_cluster": [ "opha-dev1.opmantek.net", "opha-dev2.opmantek.net", "opha-dev6.opmantek.net" ] }
If there are more than one instance of these 2 parameters there could be issues
| Code Block | ||||
|---|---|---|---|---|
| ||||
shankarn@opha-dev7:/usr/local/omk/bin$ grep nats_cluster /usr/local/omk/conf/opCommon.json
"nats_cluster" : [ "opha-dev4.opmantek.net", "opha-dev5.opmantek.net", "opha-dev7.opmantek.net" ],
shankarn@opha-dev7:~$ grep nats_num_replicas /usr/local/omk/conf/opCommon.json
"nats_num_replicas" : 3,
shankarn@opha-dev7:~$ |
...
Backup Configuration: Make a backup copy of the
opCommon.jsonfile before making any changes.Add NATS Cluster Configuration: Ensure the following configuration is included in
opCommon.jsonon all servers. In the below example we have added the Main Primary, arbiter and Secondary Primary FQDNs and port/s to be utilized in the nats_cluster attribute, you can find this in the database section.Code Block language json "nats_cluster": [ "opha-dev1.opmantek.net", "opha-dev2.opmantek.net", "opha-dev6.opmantek.net" ]
Ensure"nats_num_replicas": 3 instead of 1 in /usr/local/omk/conf/opCommon.json.
Ensure there is only one instance of “nats_num_replicas” and "nats_cluster" in opCommon.jsonCode Block "database" : { "nats_num_replicas": 3, "nats_cluster": [ "opha-dev1.opmantek.net", "opha-dev2.opmantek.net", "opha-dev6.opmantek.net" ] }If there are more than one instance of these 2 parameters there could be issues
Code Block shankarn@opha-dev7:/usr/local/omk/bin$ grep nats_cluster /usr/local/omk/conf/opCommon.json "nats_cluster" : [ "opha-dev4.opmantek.net", "opha-dev5.opmantek.net", "opha-dev7.opmantek.net" ], shankarn@opha-dev7:~$ grep nats_num_replicas /usr/local/omk/conf/opCommon.json "nats_num_replicas" : 3, shankarn@opha-dev7:~$
Main Primary and Secondary Primary only: Ensure there is only one instance of “db_replica_set” and "db_mongo_cluster" in opCommon.json. And these 2 vars are as set below.
Code Block "database" : { "db_replica_set": "rs1", "db_mongo_cluster": [ "opha-dev1.opmantek.net", "opha-dev6.opmantek.net" ], }If there are more than one instance of these 2 parameters there could be issues
Code Block shankarn@opha-dev7:/usr/local/omk/bin$ grep db_mongo_cluster /usr/local/omk/conf/opCommon.json "db_mongo_cluster" : [ "opha-dev4.opmantek.net", "opha-dev7.opmantek.net" ], shankarn@opha-dev7:~$ grep nats_num_replicas /usr/local/omk/conf/opCommon.json "nats_num_replicas" : 3, shankarn@opha-dev7:~$
Server-Specific Configuration
...