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

Click the Deployment tab, then click the Deployment page.

2

On the line listing the replica set, click the wrench icon.

If you do not see the replica set, click the first of the two Processes icons.

3

Add and configure the new member.

Add the member by increasing the number of members in the MongoDs Per Replica Set field.

You can configure the member as a normal replica set member, as a hidden, delayed, or priority-0 secondary, or as an arbiter.

4

Click Apply.

5

Click Review & Deploy to review your changes.

6

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If they are acceptable, click Confirm & Deploy.
  2. If they are unacceptable, click Cancel and you can make additional changes.

Edit a Replica Set Member

Use this procedure to:

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

1

Click the Deployment tab, then click the Deployment page.

2

On the line listing the replica set, click the wrench icon.

If you do not see the replica set, click the first of the two Processes icons.

3

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

You can configure the member as a normal replica set member, as a hidden, delayed, or priority-0 secondary, or as an arbiter.

4

Click Apply.

5

Click Review & Deploy to review your changes.

6

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If they are acceptable, click Confirm & Deploy.
  2. If they are unacceptable, click Cancel and you can make additional changes.

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

Click the Deployment tab, then click the Deployment page.

2

Click the first of the two Processes icons.

3

Click the replica set’s wrench icon.

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 to review your changes.

6

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If they are acceptable, click Confirm & Deploy.
  2. If they are unacceptable, click Cancel and you can make additional changes.
7

Remove the secondary.

When the deployment completes, click the ellipsis icon for secondary to be removed, and then select Remove from Replica Set.

8

Click Review Changes.

9

Click Confirm & Deploy.

10

Remove the standalone instance. (Optional)

Upon completion, Ops Manager removes the member from the replica set. The instance continues to run as a standalone. To shut down the standalone, see Shut Down a MongoDB Process.

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.

When removing members, you must keep a majority of voting members active with respect to the original number of voting members. Otherwise your primary will step down and your replica set become read-only. You can remove multiple members at once only if doing so leaves a majority. For more information on voting, see Replica Set Elections and Replica Set High Availability in the MongoDB Manual.

Removing members might affect the ability of the replica set to acknowledge writes, depending on the level of write concern you use. For more information, see Write Concern in the MongoDB manual.

To remove a member:

1

Click the Deployment tab, then click the Deployment page.

2

Click the first of the two Processes icons.

3

Click the ellipsis icon for the member to be removed and select Remove from Replica Set.

4

Click Remove to confirm.

5

Click Review & Deploy to review your changes.

6

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If they are acceptable, click Confirm & Deploy.
  2. If they are unacceptable, click Cancel and you can make additional changes.
7

Remove the standalone instance. (Optional)

Upon completion, Ops Manager removes the member from the replica set. The instance continues to run as a standalone. To shut down the standalone, see Shut Down a MongoDB Process.

Additional Information

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