Skip to content

Instantly share code, notes, and snippets.

@davidbanham
Last active August 29, 2015 14:19
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 davidbanham/aa9f7c24b3932a995f59 to your computer and use it in GitHub Desktop.
Save davidbanham/aa9f7c24b3932a995f59 to your computer and use it in GitHub Desktop.
ordermentum:PRIMARY> rs.add("mongod2")
{ "ok" : 1 }
ordermentum:PRIMARY> rs.add("mongod3")
{ "ok" : 1 }
ordermentum:PRIMARY> rs.status()
{
"set" : "ordermentum",
"date" : ISODate("2015-04-20T01:28:47.456Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "ip-10-1-17-121:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 41,
"optime" : Timestamp(1429493324, 1),
"optimeDate" : ISODate("2015-04-20T01:28:44Z"),
"electionTime" : Timestamp(1429493315, 2),
"electionDate" : ISODate("2015-04-20T01:28:35Z"),
"configVersion" : 3,
"self" : true
},
{
"_id" : 1,
"name" : "mongod2:27017",
"health" : 1,
"state" : 0,
"stateStr" : "STARTUP",
"uptime" : 6,
"optime" : Timestamp(0, 0),
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2015-04-20T01:28:46.782Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : 1,
"configVersion" : -2
},
{
"_id" : 2,
"name" : "mongod3:27017",
"health" : 1,
"state" : 0,
"stateStr" : "STARTUP",
"uptime" : 2,
"optime" : Timestamp(0, 0),
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2015-04-20T01:28:46.802Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : 17,
"configVersion" : -2
}
],
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment