Navigation
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.

Edit a Replica Set

Overview

You can add, remove, and reconfigure members in a replica set directly in the Ops Manager console.

Procedures

Add a Replica Set Member

You must have an existing server to which to deploy the new replica set member. To add a member to an existing replica set, increasing the size of the set:

1

Select the Deployment tab and then the Deployment page.

2

Edit the replica set.

Click edit mode. Then click the arrow to the right of the replica set and click the Edit button.

3

Add the member.

In the MongoDs Per Replica Set field, click + to increase the number of members for the replica set.

Configure the new members as desired in the Member Options box.

Then click Apply.

4

Click Review & Deploy to review the configuration.

Ops Manager displays the full configuration for you to review.

5

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.

Edit a Replica Set Member

Use this procedure to:

To reconfigure a member as an arbiter, see Replace a Member with an Arbiter.

1

Select the Deployment tab and then the Deployment page.

2

Click edit mode, and then click the arrow to the right of the replica set and click the Edit button.

3

In the Member Options box, configure each member as needed.

For information on member options, see the following in the MongoDB manual:

The Votes field applies to pre-2.6 versions of MongoDB.

4

Click Apply.

5

Click Review & Deploy to review the configuration.

Ops Manager displays the full configuration for you to review.

6

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.

Replace a Member with an Arbiter

You cannot directly reconfigure a member as an arbiter. Instead, you must must add a new member to the replica set as an arbiter. Then you must shut down an existing secondary.

1

Select the Deployment tab and then the Deployment page.

2

Click edit mode.

3

Click the arrow to the right of the replica set and then click the Edit button.

4

Add an arbiter.

In the MongoDs Per Replica Set field, increase the number of members by 1.

In the Member Options box, click the member’s drop-down arrow and select Arbiter.

Click Apply.

5

Click Review & Deploy.

6

Click Confirm & Deploy.

7

Remove the secondary.

When the deployment completes, click the arrow to the right of the secondary to remove. Click the gear icon drop-down list, and select Remove Member.”

8

Click Review & Deploy.

9

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.

Upon completion, Ops Manager removes the member from the replica set, but it will continue to run as a standalone MongoDB instance. To shut down the standalone, see Shut Down MongoDB Processes.

Remove a Replica Set Member

Removing a member from a replica set does not shut down the member or remove it from Ops Manager. Ops Manager still monitors the mongod as as standalone instance. To remove a member:

1

Select the Deployment tab and then the Deployment page.

2

Click edit mode, and then click the arrow to the right of the member to be removed.

3

Click the gear icon drop-down list and select Remove Member.

4

Click Remove to confirm.

5

Click Review & Deploy.

6

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.

Upon completion, Ops Manager removes the member from the replica set, but it will continue to run as a standalone MongoDB instance. To shut down the standalone, see Shut Down MongoDB Processes.

Additional Information

To view data from all replica set members at once, see Replica Set Statistics.

For more information on replica set configuration options, see, Replica Set Configuration in the MongoDB manual.