Skip to content

Configuring a Shared Replica Set


Caution - cluster

In a cluster all servers must use the same database. Therefore you have to perform the following configuration steps on every member of the replica set separately.

  1. In an editor, open the MongoDB configuration file:

    C:\ProgramData\SEAL Systems\config\mongod.conf
    
  2. Change the following line:

    bindIp: 127.0.0.1
    

    to:

    bindIp: 0.0.0.0
    
  3. Add the following lines:

    replication:
      oplogSizeMB: 2048
      replSetName: <YourReplicaSetName>
    

    Hint - oplogSizeMB

    We recommend setting oplogSizeMB to 5 % of the disk space available for MongoDB.

  4. Restart MongoDB:

    Restart-service seal-mongodb
    

Proceed with initializing MongoDB on the replica set primary as soon as all members of the replica set are configured.


Back to top