Reference Guide

Achieve high availability on MongoDB
The following steps explain how to achieve high availability on MongoDB:
1 Install MongoDB—see Installing MongoDB.
2 Create replica servers—see Creating Replica servers.
3 Create Stratus users—see Creating Stratus user account.
4 Create root user—see Creating root user for MongoDB.
5 Edit MongoDB conguration le—see Editing MongoDB conguration le.
Install MongoDB
To install MongoDB on all the three nodes, do the following:
NOTE: For information on installing MongoDB see—Install MongoDB
1 Copy the MongoDB installation les on a system.
2 Create two folders Data\log and data\db on a secondary drive other than Drive C.
Figure 24. Data les
3 Go to the folder where you have copied the MongoDB installation les, and create a le mongod.cfg from the command prompt.
6
26 Achieve high availability on MongoDB