Docs Menu

Replication Methods

Note

For details on specific methods, including syntax and examples, click on the specific method to go to its reference page.

Name
Description
Adds a member to a replica set.
Adds an arbiter to a replica set.
Returns the replica set configuration document.
Prevents the current member from seeking election as primary for a period of time.
Returns basic help text for replica set functions.
Initializes a new replica set.
Prints a formatted report of the replica set status from the perspective of the primary.
Prints a formatted report of the replica set status from the perspective of the secondaries.

Deprecated since version 4.4.1: Use rs.printSecondaryReplicationInfo() instead.

Reconfigures a replica set by applying a new replica set configuration object.
Safely perform some reconfiguration changes on a primary-secondary-arbiter (PSA) replica set or on a replica set that is changing to a PSA architecture.
Remove a member from a replica set.
Returns a document with information about the state of the replica set.
Causes the current primary to become a secondary which forces an election.
Sets the member that this replica set member will sync from, overriding the default sync target selection logic.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.