Reference Guide

Achieve high availability on MongoDB
About this task
The following steps explain how to achieve high availability on MongoDB:
Steps
1. Install MongoDBsee Installing MongoDB.
2. Create replica serverssee Creating Replica servers.
3. Create Stratus userssee Creating Stratus user account.
4. Create root usersee Creating root user for MongoDB.
5. Edit MongoDB configuration filesee 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 seeInstall 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 59