Skip to content

Instantly share code, notes, and snippets.

@alexbevi
Last active February 14, 2020 16:15
Show Gist options
  • Save alexbevi/d52ffd2e27068dcdcc616a5aaf814907 to your computer and use it in GitHub Desktop.
Save alexbevi/d52ffd2e27068dcdcc616a5aaf814907 to your computer and use it in GitHub Desktop.
{
"set": "replset",
"date": ISODate("2019-12-04T05:12:52.835Z"),
"myState": 5,
"term": NumberLong(3),
"syncingTo": "m2.example.net:27017",
"syncSourceHost": "m2.example.net:27017",
"syncSourceId": 1,
"heartbeatIntervalMillis": NumberLong(2000),
"majorityVoteCount": 2,
"writeMajorityCount": 2,
"optimes": {
"lastCommittedOpTime": {
"ts": Timestamp(0, 0),
"t": NumberLong(-1)
},
"lastCommittedWallTime": ISODate("1970-01-01T00:00:00Z"),
"appliedOpTime": {
"ts": Timestamp(0, 0),
"t": NumberLong(-1)
},
"durableOpTime": {
"ts": Timestamp(0, 0),
"t": NumberLong(-1)
},
"lastAppliedWallTime": ISODate("1970-01-01T00:00:00Z"),
"lastDurableWallTime": ISODate("1970-01-01T00:00:00Z")
},
"lastStableRecoveryTimestamp": Timestamp(0, 0),
"lastStableCheckpointTimestamp": Timestamp(0, 0),
"initialSyncStatus": {
"failedInitialSyncAttempts": 0,
"maxFailedInitialSyncAttempts": 10,
"initialSyncStart": ISODate("2019-12-04T05:12:35.719Z"),
"initialSyncAttempts": [],
"fetchedMissingDocs": 0,
"appliedOps": 0,
"initialSyncOplogStart": Timestamp(1575436355, 1),
"databases": {
"databasesCloned": 2,
"admin": {
"collections": 4,
"clonedCollections": 4,
"start": ISODate("2019-12-04T05:12:35.947Z"),
"end": ISODate("2019-12-04T05:12:36.486Z"),
"elapsedMillis": 539,
"admin.system.roles": {
"documentsToCopy": 12,
"documentsCopied": 12,
"indexes": 2,
"fetchedBatches": 1,
"start": ISODate("2019-12-04T05:12:35.950Z"),
"end": ISODate("2019-12-04T05:12:36.101Z"),
"elapsedMillis": 151,
"receivedBatches": 1
},
"admin.system.users": {
"documentsToCopy": 22,
"documentsCopied": 22,
"indexes": 2,
"fetchedBatches": 1,
"start": ISODate("2019-12-04T05:12:36.101Z"),
"end": ISODate("2019-12-04T05:12:36.252Z"),
"elapsedMillis": 151,
"receivedBatches": 1
},
"admin.system.keys": {
"documentsToCopy": 2,
"documentsCopied": 2,
"indexes": 1,
"fetchedBatches": 1,
"start": ISODate("2019-12-04T05:12:36.252Z"),
"end": ISODate("2019-12-04T05:12:36.372Z"),
"elapsedMillis": 120,
"receivedBatches": 1
},
"admin.system.version": {
"documentsToCopy": 2,
"documentsCopied": 2,
"indexes": 1,
"fetchedBatches": 1,
"start": ISODate("2019-12-04T05:12:36.372Z"),
"end": ISODate("2019-12-04T05:12:36.486Z"),
"elapsedMillis": 114,
"receivedBatches": 1
}
},
"config": {
"collections": 2,
"clonedCollections": 2,
"start": ISODate("2019-12-04T05:12:36.486Z"),
"end": ISODate("2019-12-04T05:12:36.863Z"),
"elapsedMillis": 377,
"config.transactions": {
"documentsToCopy": 0,
"documentsCopied": 0,
"indexes": 1,
"fetchedBatches": 0,
"start": ISODate("2019-12-04T05:12:36.487Z"),
"end": ISODate("2019-12-04T05:12:36.645Z"),
"elapsedMillis": 158,
"receivedBatches": 0
},
"config.system.sessions": {
"documentsToCopy": 1,
"documentsCopied": 1,
"indexes": 2,
"fetchedBatches": 1,
"start": ISODate("2019-12-04T05:12:36.645Z"),
"end": ISODate("2019-12-04T05:12:36.863Z"),
"elapsedMillis": 218,
"receivedBatches": 1
}
},
"test": {
"collections": 1,
"clonedCollections": 0,
"start": ISODate("2019-12-04T05:12:36.863Z"),
"test.hugeindex": {
"documentsToCopy": 25000,
"documentsCopied": 9187,
"indexes": 2,
"fetchedBatches": 8,
"start": ISODate("2019-12-04T05:12:36.865Z"),
"receivedBatches": 9
}
}
}
},
"members": [
{
"_id": 0,
"name": "m1.example.net:27017",
"ip": "198.51.100.1",
"health": 1,
"state": 1,
"stateStr": "PRIMARY",
"uptime": 17,
"optime": {
"ts": Timestamp(1575436355, 1),
"t": NumberLong(3)
},
"optimeDurable": {
"ts": Timestamp(1575436355, 1),
"t": NumberLong(3)
},
"optimeDate": ISODate("2019-12-04T05:12:35Z"),
"optimeDurableDate": ISODate("2019-12-04T05:12:35Z"),
"lastHeartbeat": ISODate("2019-12-04T05:12:52.216Z"),
"lastHeartbeatRecv": ISODate("2019-12-04T05:12:51.485Z"),
"pingMs": NumberLong(0),
"lastHeartbeatMessage": "",
"syncingTo": "",
"syncSourceHost": "",
"syncSourceId": -1,
"infoMessage": "",
"electionTime": Timestamp(1575434944, 1),
"electionDate": ISODate("2019-12-04T04:49:04Z"),
"configVersion": 3
},
{
"_id": 1,
"name": "m2.example.net:27017",
"ip": "198.51.100.2",
"health": 1,
"state": 2,
"stateStr": "SECONDARY",
"uptime": 17,
"optime": {
"ts": Timestamp(1575436355, 1),
"t": NumberLong(3)
},
"optimeDurable": {
"ts": Timestamp(1575436355, 1),
"t": NumberLong(3)
},
"optimeDate": ISODate("2019-12-04T05:12:35Z"),
"optimeDurableDate": ISODate("2019-12-04T05:12:35Z"),
"lastHeartbeat": ISODate("2019-12-04T05:12:52.216Z"),
"lastHeartbeatRecv": ISODate("2019-12-04T05:12:52.728Z"),
"pingMs": NumberLong(0),
"lastHeartbeatMessage": "",
"syncingTo": "",
"syncSourceHost": "",
"syncSourceId": -1,
"infoMessage": "",
"configVersion": 3
},
{
"_id": 2,
"name": "m3.example.net:27017",
"ip": "198.51.100.3",
"health": 1,
"state": 5,
"stateStr": "STARTUP2",
"uptime": 71,
"optime": {
"ts": Timestamp(0,
0),
"t": NumberLong(-1)
},
"optimeDate": ISODate("1970-01-01T00:00:00Z"),
"syncingTo": "m2.example.net:27017",
"syncSourceHost": "m2.example.net:27017",
"syncSourceId": 1,
"infoMessage": "",
"configVersion": 3,
"self": true,
"lastHeartbeatMessage": ""
}
],
"ok": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment