rs.add() | Adds a member to a replica set.将成员添加到副本集。 |
rs.addArb() | Adds an arbiter to a replica set.向副本集添加仲裁器。 |
rs.conf() | Returns the replica set configuration document.返回副本集配置文档。 |
rs.freeze() | Prevents the current member from seeking election as primary for a period of time.阻止当前成员在一段时间内寻求初选。 |
rs.help() | Returns basic help text for replica set functions.返回副本集函数的基本帮助文本。 |
rs.initiate() | Initializes a new replica set.初始化新的副本集。 |
rs.printReplicationInfo() | Prints a formatted report of the replica set status from the perspective of the primary.从主副本的角度打印副本集状态的格式化报告。 |
rs.printSecondaryReplicationInfo() | Prints a formatted report of the replica set status from the perspective of the secondaries.从次级服务器的角度打印副本集状态的格式化报告。 |
rs.reconfig() | Re-configures a replica set by applying a new replica set configuration object.通过应用新的副本集配置对象重新配置副本集。 |
rs.remove() | Remove a member from a replica set.从副本集中删除成员。 |
rs.status() | Returns a document with information about the state of the replica set.返回一个文档,其中包含有关副本集状态的信息。 |
rs.stepDown() | Causes the current primary to become a secondary which forces an election.使当前的primary成为迫使选举的secondary。 |
rs.syncFrom() | Sets the member that this replica set member will sync from, overriding the default sync target selection logic.设置此副本集成员将从中同步的成员,覆盖默认同步目标选择逻辑。 |