Skip to content

Instantly share code, notes, and snippets.

@daniilyar
Created February 26, 2015 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniilyar/630bc6fe7723ed06f243 to your computer and use it in GitHub Desktop.
Save daniilyar/630bc6fe7723ed06f243 to your computer and use it in GitHub Desktop.
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