Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
output of rs.status() from PRIMARY host
10.148.28.51:PRIMARY> rs.status()
{
"set" : "10.148.28.51",
"date" : ISODate("2015-02-25T18:35:38Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "ip-10-148-28-51:27118",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 957,
"optime" : Timestamp(1424888535, 1),
"optimeDate" : ISODate("2015-02-25T18:22:15Z"),
"electionTime" : Timestamp(1424888507, 1),
"electionDate" : ISODate("2015-02-25T18:21:47Z"),
"self" : true
},
{
"_id" : 1,
"name" : "10.148.28.52:27118",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 811,
"optime" : Timestamp(1424888535, 1),
"optimeDate" : ISODate("2015-02-25T18:22:15Z"),
"lastHeartbeat" : ISODate("2015-02-25T18:35:37Z"),
"lastHeartbeatRecv" : ISODate("2015-02-25T18:35:36Z"),
"pingMs" : 0,
"syncingTo" : "ip-10-148-28-51:27118"
},
{
"_id" : 2,
"name" : "10.148.28.53:27118",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 803,
"optime" : Timestamp(1424888535, 1),
"optimeDate" : ISODate("2015-02-25T18:22:15Z"),
"lastHeartbeat" : ISODate("2015-02-25T18:35:37Z"),
"lastHeartbeatRecv" : ISODate("2015-02-25T18:35:36Z"),
"pingMs" : 0,
"syncingTo" : "ip-10-148-28-51:27118"
}
],
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.