Replication Commands复制命令

Note注意

For details on specific commands, including syntax and examples, click on the specific command to go to its reference page.有关特定命令的详细信息,包括语法和示例,请单击特定命令以转到其参考页。

Name名称Description描述
applyOpsInternal command that applies oplog entries to the current data set.oplog条目应用于当前数据集的内部命令。
helloDisplays information about this member's role in the replica set, including whether it is the primary.显示有关此成员在副本集中的角色的信息,包括它是否是主成员。
replSetAbortPrimaryCatchUpForces the elected primary to abort sync (catch up) then complete the transition to primary.强制选定的primary中止同步(追赶),然后完成到主进程的转换。
replSetFreezePrevents the current member from seeking election as primary for a period of time.阻止当前成员在一段时间内以primary身份寻求选举。
replSetGetConfigReturns the replica set's configuration object.返回复制集的配置对象。
replSetGetStatusReturns a document that reports on the status of the replica set.返回报告副本集状态的文档。
replSetInitiateInitializes a new replica set.初始化新的副本集。
replSetMaintenanceEnables or disables a maintenance mode, which puts a secondary node in a RECOVERING state.启用或禁用维护模式,使辅助节点处于RECOVERING状态。
replSetReconfigApplies a new configuration to an existing replica set.将新配置应用于现有副本集。
replSetResizeOplogDynamically resizes the oplog for a replica set member. 动态调整副本集成员的oplog的大小。Available for WiredTiger storage engine only.仅适用于WiredTiger存储引擎。
replSetStepDownForces the current primary to step down and become a secondary, forcing an election.迫使当前的primary下台,成为secondary,迫使选举。
replSetSyncFromExplicitly override the default logic for selecting a member to replicate from.显式重写用于选择要从中复制的成员的默认逻辑。
←  updateRoleapplyOps →