Configuring a Shared Replica Set¶
Caution - cluster
- 
In an editor, 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: <YourReplicaSetName>Hint - oplogSizeMBWe recommend setting oplogSizeMBto 5 % of the disk space available for MongoDB.
- 
Restart MongoDB: sudo systemctl restart mongod
Proceed with initializing MongoDB on the replica set primary as soon as all members of the replica set are configured.