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.-
Edit the MongoDB configuration file:
C:\ProgramData\SEAL Systems\config\mongod.conf
-
Change the following line:
bindIp: 127.0.0.1
to:
bindIp: 0.0.0.0
-
Add the following lines:
replication: oplogSizeMB: 2048 replSetName: <YourReplicaSetName>
Hint -
oplogSizeMB
We recommend setting
oplogSizeMB
to 5 % of the disk space available for MongoDB. -
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.