Created
September 30, 2016 07:14
-
-
Save lucj/0e3478d7ed29f138255fb0ea58df31af to your computer and use it in GitHub Desktop.
mongors.status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rs0:PRIMARY> rs.status() | |
{ | |
"set" : "rs0", | |
"date" : ISODate("2016-09-30T07:05:58.418Z"), | |
"myState" : 1, | |
"term" : NumberLong(1), | |
"heartbeatIntervalMillis" : NumberLong(2000), | |
"members" : [ | |
{ | |
"_id" : 0, | |
"name" : "rs1:27017", | |
"health" : 1, | |
"state" : 1, | |
"stateStr" : "PRIMARY", | |
"uptime" : 48, | |
"optime" : { | |
"ts" : Timestamp(1475219141, 2), | |
"t" : NumberLong(1) | |
}, | |
"optimeDate" : ISODate("2016-09-30T07:05:41Z"), | |
"infoMessage" : "could not find member to sync from", | |
"electionTime" : Timestamp(1475219141, 1), | |
"electionDate" : ISODate("2016-09-30T07:05:41Z"), | |
"configVersion" : 1, | |
"self" : true | |
}, | |
{ | |
"_id" : 1, | |
"name" : "rs2:27017", | |
"health" : 1, | |
"state" : 2, | |
"stateStr" : "SECONDARY", | |
"uptime" : 27, | |
"optime" : { | |
"ts" : Timestamp(1475219141, 2), | |
"t" : NumberLong(1) | |
}, | |
"optimeDate" : ISODate("2016-09-30T07:05:41Z"), | |
"lastHeartbeat" : ISODate("2016-09-30T07:05:57.267Z"), | |
"lastHeartbeatRecv" : ISODate("2016-09-30T07:05:56.561Z"), | |
"pingMs" : NumberLong(0), | |
"syncingTo" : "rs1:27017", | |
"configVersion" : 1 | |
}, | |
{ | |
"_id" : 2, | |
"name" : "rs3:27017", | |
"health" : 1, | |
"state" : 2, | |
"stateStr" : "SECONDARY", | |
"uptime" : 27, | |
"optime" : { | |
"ts" : Timestamp(1475219141, 2), | |
"t" : NumberLong(1) | |
}, | |
"optimeDate" : ISODate("2016-09-30T07:05:41Z"), | |
"lastHeartbeat" : ISODate("2016-09-30T07:05:57.267Z"), | |
"lastHeartbeatRecv" : ISODate("2016-09-30T07:05:56.565Z"), | |
"pingMs" : NumberLong(1), | |
"syncingTo" : "rs1:27017", | |
"configVersion" : 1 | |
} | |
], | |
"ok" : 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment