Skip to content

Configuring MongoDB in a PLOSSYS 5 System


Configuring a Shared Replica Set

For the communication with the PLOSSYS 5 system configure a shared replica set:

  1. Edit 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
    

Initializing the Database

  1. Open a PowerShell (Administrator).

  2. Initialize the database:

    & "C:\Program Files\MongoDB\Server\3.6\bin\mongo.exe" --ssl --sslAllowInvalidCertificates --sslAllowInvalidHostnames --eval "rs.initiate()"
    

    The output has to contain the following line:

    "ok" : 1


Back to top