This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Deploy a Replica Set


A replica set is a group of MongoDB deployments that maintain the same data set. Replica sets provide redundancy and high availability and are the basis for all production deployments. See the Replication Introduction in the MongoDB manual for more information about replica sets.

Use this procedure to deploy a new replica set managed by Ops Manager. After deployment, use Ops Manager to manage the replica set, including such operations as adding, removing, and reconfiguring members.


Use unique replica set names for different replica sets within an Ops Manager group. Do not give different replica sets the same name. Ops Manager uses the replica set name to identify which set a member belongs to.


You must have an existing set of servers to which to deploy, and Ops Manager must have access to the servers.

The servers can exist on your own system or on Amazon Web Services (AWS). To give Ops Manager access to servers on your system, install the Automation Agent to each server.


If you provision your own servers and if you use MongoDB Enterprise, you must install the prerequisite packages on the servers before deploying MongoDB Enterprise on the servers.



Select the Deployment tab and then the Deployment page.


Click edit mode, and then click Add and select Create New Replica Set.


Configure the replica set.

Enter information as required and click Apply.

To select specific servers to use for the deployment, enter the prefix of the servers in the Eligible Server RegExp field. You can use regular expressions. To use all provisioned servers, enter a period (“.”). To run the deployment on your local machine, enter the name of the machine.

For information on replica set options in the Member Options box, see Replica Set Members in the MongoDB Manual. The votes field applies only to pre-2.6 versions of MongoDB.

To configure additional mongod runtime options, such as specifying the oplog size, or modifying journaling settings, click Advanced Options. For option descriptions, see Advanced Options for MongoDB Deployments.


Click Review & Deploy to review the configuration.

Ops Manager displays the full configuration for you to review.


Click Confirm & Deploy.

To view deployment progress, click View Agent Logs and select an agent at the top of the Agent Logs page. To check for updated entries, refresh the page.

If you diagnose an error and need to correct the deployment configuration, click Edit Configuration and then click Edit Configuration again. Reconfigure the deployment through the deployment arrow button or through the Add button. If you cannot find a solution, shut down the deployment. When you complete your changes, click Review & Deploy and then Confirm & Deploy.