Primary Nodes¶
The following fields appear in the output of db.getReplicationInfo() for primary nodes.
- db.getReplicationInfo.errmsg¶
Returns the last error status.
发布于 2015-09-14 14:49:38 | 128 次阅读 | 评论: 0 | 来源: 网络整理
The db.getReplicationInfo() provides current status of the current replica status, using data polled from the “oplog”. Consider the values of this output when diagnosing issues with replication.
也可以参考
“副本集基本概念” for more information on replication.
The following fields are present in the output of db.getReplicationInfo() for both primary and secondary nodes.
The following fields appear in the output of db.getReplicationInfo() for primary nodes.
Returns the last error status.
The following fields appear in the output of db.getReplicationInfo() for secondary nodes.
Returns the difference between the first and last operation in the oplog, represented in seconds.
Returns the difference between the first and last operation in the oplog, rounded and represented in hours.
Returns a time stamp for the first (i.e. earliest) operation in the oplog. Compare this value to the last write operation issued against the server.