Replication Reference复制参考
Replication Methods in mongosh
mongosh
中的复制方法
Replication Database Commands复制数据库命令
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.启用或禁用维护模式,使secondary节点处于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.显式重写用于选择要从中复制的成员的默认逻辑。 |