Versions Compared

Key

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

...

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

  2. Add NATS Cluster Configuration: Ensure the following configuration is included in opCommon.json on 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
    languagejson
    "nats_cluster": [ "opha-dev1.opmantek.net", "opha-dev2.opmantek.net", "opha-dev6.opmantek.net" ]
  3. 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.json

    Code 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
breakoutModewide
breakoutWidth760
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:~$

...

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

  2. Add NATS Cluster Configuration: Ensure the following configuration is included in opCommon.json on 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
    languagejson
    "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.json

    Code 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:~$
  1. 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

...