Reference Guide

Achieve high availability on MongoDB
About this task
The following steps explain how to achieve high availability on MongoDB:
Steps
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 configuration file—see Editing MongoDB configuration file.
Install MongoDB
About this task
To install MongoDB on all the three nodes, do the following:
NOTE: For information on installing MongoDB see—Install MongoDB
Steps
1. Copy the MongoDB installation files on a system.
2. Create two folders Data\log and data\db on a secondary drive other than Drive C.
Figure 54. Data files
3. Go to the folder where you have copied the MongoDB installation files, and create a file mongod.cfg from the command prompt.
6
Achieve high availability on MongoDB 57