Skip to content

Instantly share code, notes, and snippets.

@emalloy
Created August 3, 2016 18:04
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 emalloy/909b9da21c1e7810ecff91dced80cd79 to your computer and use it in GitHub Desktop.
Save emalloy/909b9da21c1e7810ecff91dced80cd79 to your computer and use it in GitHub Desktop.
readme-extension
MongoDB shell version: 3.2.8
connecting to: admin
{
"set" : "mongoreplicas",
"date" : ISODate("2016-08-03T17:59:24.864Z"),
"myState" : 2,
"term" : NumberLong(1),
"syncingTo" : "10.253.2.135:27017",
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "10.253.2.135:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 369,
"optime" : {
"ts" : Timestamp(1470246797, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-08-03T17:53:17Z"),
"lastHeartbeat" : ISODate("2016-08-03T17:59:23.019Z"),
"lastHeartbeatRecv" : ISODate("2016-08-03T17:59:24.137Z"),
"pingMs" : NumberLong(0),
"electionTime" : Timestamp(1470246290, 2),
"electionDate" : ISODate("2016-08-03T17:44:50Z"),
"configVersion" : 4
},
{
"_id" : 1,
"name" : "mongo1:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 369,
"optime" : {
"ts" : Timestamp(1470246797, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-08-03T17:53:17Z"),
"lastHeartbeat" : ISODate("2016-08-03T17:59:23.018Z"),
"lastHeartbeatRecv" : ISODate("2016-08-03T17:59:23.975Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.253.2.135:27017",
"configVersion" : 4
},
{
"_id" : 2,
"name" : "mongo2:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 901,
"optime" : {
"ts" : Timestamp(1470246797, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-08-03T17:53:17Z"),
"syncingTo" : "10.253.2.135:27017",
"configVersion" : 4,
"self" : true
},
{
"_id" : 3,
"name" : "mongo3:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 367,
"optime" : {
"ts" : Timestamp(1470246797, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-08-03T17:53:17Z"),
"lastHeartbeat" : ISODate("2016-08-03T17:59:23.025Z"),
"lastHeartbeatRecv" : ISODate("2016-08-03T17:59:19.947Z"),
"pingMs" : NumberLong(1),
"configVersion" : 4
}
],
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment