rs.status()

On this page本页内容

Definition定义

rs.status()

Returns the replica set status from the point of view of the member where the method is run. 从运行方法的成员的角度返回副本集状态。This method provides a wrapper around the replSetGetStatus command.此方法提供replSetGetStatus命令的包装。

This output reflects the current status of the replica set, using data derived from the heartbeat packets sent by the other members of the replica set.此输出使用从副本集的其他成员发送的心跳数据包中导出的数据反映副本集的当前状态。

Output输出

For an example and details on the output, see replSetGetStatus.有关输出的示例和详细信息,请参阅replSetGetStatus

←  rs.remove()rs.stepDown() →