- {
- "set" : "kgcrs",
- "date" : ISODate("2018-09-16T04:51:37.669Z"),
- "myState" : 2,
- "term" : NumberLong(2),
- "syncingTo" : "192.168.198.128:27019",
- "syncSourceHost" : "192.168.198.128:27019",
- "syncSourceId" : 2,
- "heartbeatIntervalMillis" : NumberLong(2000),
- "optimes" : {
- "lastCommittedOpTime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "readConcernMajorityOpTime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "appliedOpTime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "durableOpTime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- }
- },
- "members" : [
- {
- "_id" : 0,
- "name" : "192.168.198.128:27017", ----(第一台节点)
- "health" : 0, ----(原来的健康值变为 "0")
- "state" : 8,
- "stateStr" : "(not reachable/healthy)",
- "uptime" : 0,
- "optime" : {
- "ts" : Timestamp(0, 0),
- "t" : NumberLong(-1)
- },
- "optimeDurable" : {
- "ts" : Timestamp(0, 0),
- "t" : NumberLong(-1)
- },
- "optimeDate" : ISODate("1970-01-01T00:00:00Z"),
- "optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
- "lastHeartbeat" : ISODate("2018-09-16T04:51:36.332Z"),
- "lastHeartbeatRecv" : ISODate("2018-09-16T04:47:29.932Z"),
- "pingMs" : NumberLong(0),
- "lastHeartbeatMessage" : "Connection refused",
- "syncingTo" : "","syncSourceHost":"",
- "syncSourceId" : -1,
- "infoMessage" : "","configVersion" : -1
- },
- {
- "_id" : 1, ----(第二台实例)
- "name" : "192.168.198.128:27018",
- "health" : 1, ----(健康值为 "1")
- "state" : 2,
- "stateStr" : "SECONDARY", ----(节点状态是: 从几从节点)
- "uptime" : 2060,
- "optime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "optimeDate" : ISODate("2018-09-16T04:51:32Z"),
- "syncingTo" : "192.168.198.128:27019",
- "syncSourceHost" : "192.168.198.128:27019",
- "syncSourceId" : 2,
- "infoMessage" : "","configVersion": 3,"self": true,"lastHeartbeatMessage":""
- },
- {
- "_id" : 2, -----(第三台节点)
- "name" : "192.168.198.128:27019",
- "health" : 1, -----(健康值为 '1')
- "state" : 1,
- "stateStr" : "PRIMARY", -----(现在是第三台节点为主节点)
- "uptime" : 1349,
- "optime" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "optimeDurable" : {
- "ts" : Timestamp(1537073492, 1),
- "t" : NumberLong(2)
- },
- "optimeDate" : ISODate("2018-09-16T04:51:32Z"),
- "optimeDurableDate" : ISODate("2018-09-16T04:51:32Z"),
- "lastHeartbeat" : ISODate("2018-09-16T04:51:36.289Z"),
- "lastHeartbeatRecv" : ISODate("2018-09-16T04:51:37.431Z"),
- "pingMs" : NumberLong(0),
- "lastHeartbeatMessage" : "","syncingTo":"",
- "syncSourceHost" : "","syncSourceId": -1,"infoMessage":"",
- "electionTime" : Timestamp(1537073261, 1),
- "electionDate" : ISODate("2018-09-16T04:47:41Z"),
- "configVersion" : 3
- }
- ],
- "ok" : 1,
- "operationTime" : Timestamp(1537073492, 1),
- "$clusterTime" : {
- "clusterTime" : Timestamp(1537073492, 1),
- "signature" : {
- "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
- "keyId" : NumberLong(0)
- }
- }
- }
来源: http://www.bubuko.com/infodetail-2770070.html