Configure a Shared Replica Set¶
In MongoDB, a shared replica set has to be configured as of PLOSSYS 5.2.1:
-
Open the MongoDB configuration file:
/opt/seal/etc/mongod.conf -
Change the following line:
bindIp: 127.0.0.1to
bindIp: 0.0.0.0 -
Add the following lines:
replication: oplogSizeMB: 2048 replSetName: p5Hint -
oplogSizeMBWe recommend setting
oplogSizeMBto 5 % of the disk space available for MongoDB. -
Restart the following service:
mongod