Navigation
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 Deployment, then the Processes tab, then the Topology view.

2

On the line listing the replica set, click Modify.

If you do not see the replica set, click the Processes tab, then the Topology view.”

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.

Warning

If your replica set uses SSL (or TLS), you must create and install the necessary SSL certificates on the new replica set member host then set the SSL settings for the mongod or mongos process for the new replica set member on that host. Automation does not create and install the certificates and configure these settings automatically. If you do not configure SSL on the new member, you cannot add it to the existing SSL-enabled replica set. To learn how to enable SSL on the new replica set member, see Enable SSL for a Deployment.

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 you are satisfied, click Confirm & Deploy.
  2. Otherwise, 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 Deployment, then the Processes tab, then the Topology view.

2

On the line listing the replica set, click Modify.

If you do not see the replica set, click the Processes tab, then the Topology view.

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 you are satisfied, click Confirm & Deploy.
  2. Otherwise, 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 Deployment, then the Processes tab, then the Topology view.

2

Click the replica set’s Modify button.

3

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.

4

Click Review & Deploy to review your changes.

5

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If you are satisfied, click Confirm & Deploy.
  2. Otherwise, click Cancel and you can make additional changes.
6

Remove the secondary.

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

7

Click Review Changes.

8

Click Confirm & Deploy.

9

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 Deployment, then the Processes tab, then the Topology view.

2

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

3

Click Remove to confirm.

4

Click Review & Deploy to review your changes.

5

Review and approve your changes.

Ops Manager displays your proposed changes.

  1. If you are satisfied, click Confirm & Deploy.
  2. Otherwise, click Cancel and you can make additional changes.
6

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.