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:
-
Edit the MongoDB configuration file:
C:\ProgramData\SEAL Systems\config\mongod.conf -
Change the following line:
bindIp: 127.0.0.1to:
bindIp: 0.0.0.0 -
Add the following lines:
replication: oplogSizeMB: 2048 replSetName: <YourReplicaSetName>Hint -
oplogSizeMBWe recommend setting
oplogSizeMBto 5 % of the disk space available for MongoDB. -
Restart MongoDB:
Restart-service seal-mongodb
Initializing the Database¶
-
Open a PowerShell (Administrator).
-
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