Docs HomeMongoDB Manual

Replication Commands复制命令

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.有关特定命令的详细信息,包括语法和示例,请单击该命令参考页的链接。

Name名称Description描述
appendOplogNoteWrites a non-operational entry to the oplog.将非操作性条目写入操作日志
applyOpsInternal command that applies oplog entries to the current data set.操作日志项应用于当前数据集的内部命令。
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.启用或禁用维护模式,使secondary节点处于RECOVERING状态。
replSetReconfigApplies a new configuration to an existing replica set.将新配置应用于现有复制副本集。
replSetResizeOplogDynamically resizes the oplog for a replica set member. 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.显式重写用于选择要从中复制的成员的默认逻辑。