Docs Home → MongoDB Manual
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描述
applyOps
Internal command that applies oplog entries to the current data set.将oplog 条目应用于当前数据集的内部命令。
hello
Displays information about this member's role in the replica set, including whether it is the primary.显示有关此成员在副本集中的角色的信息,包括它是否是主成员。
replSetAbortPrimaryCatchUp
Forces the elected primary to abort sync (catch up) then complete the transition to primary.强制选定的primary 中止同步(追赶),然后完成到主进程的转换。
replSetFreeze
Prevents the current member from seeking election as primary for a period of time.阻止当前成员在一段时间内以primary 身份寻求选举。
replSetGetConfig
Returns the replica set's configuration object.返回复制集的配置对象。
replSetGetStatus
Returns a document that reports on the status of the replica set.返回报告副本集状态的文档。
replSetInitiate
Initializes a new replica set.初始化新的副本集。
replSetMaintenance
Enables or disables a maintenance mode, which puts a secondary node in a RECOVERING
state.启用或禁用维护模式,使辅助 节点处于RECOVERING
状态。
replSetReconfig
Applies a new configuration to an existing replica set.将新配置应用于现有副本集。
replSetResizeOplog
Dynamically resizes the oplog for a replica set member. 动态调整副本集成员的oplog的大小。 Available for WiredTiger storage engine only.仅适用于WiredTiger存储引擎。
replSetStepDown
Forces the current primary to step down and become a secondary , forcing an election.迫使当前的primary 下台,成为secondary ,迫使选举。
replSetSyncFrom
Explicitly override the default logic for selecting a member to replicate from.显式重写用于选择要从中复制的成员的默认逻辑。