Skip to content

Instantly share code, notes, and snippets.

@kangpaidjo
Created January 22, 2022 16:27
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 kangpaidjo/bd142b38b6ed3817b0738c465f111cc6 to your computer and use it in GitHub Desktop.
Save kangpaidjo/bd142b38b6ed3817b0738c465f111cc6 to your computer and use it in GitHub Desktop.
{
"set" : "configReplSet",
"date" : ISODate("2022-01-22T23:19:01.283Z"),
"myState" : 1,
"term" : NumberLong(1),
"syncSourceHost" : "",
"syncSourceId" : -1,
"configsvr" : true,
"heartbeatIntervalMillis" : NumberLong(2000),
"majorityVoteCount" : 2,
"writeMajorityCount" : 2,
"votingMembersCount" : 3,
"writableVotingMembersCount" : 3,
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(1642893540, 1),
"t" : NumberLong(1)
},
"lastCommittedWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"readConcernMajorityOpTime" : {
"ts" : Timestamp(1642893540, 1),
"t" : NumberLong(1)
},
"appliedOpTime" : {
"ts" : Timestamp(1642893540, 1),
"t" : NumberLong(1)
},
"durableOpTime" : {
"ts" : Timestamp(1642893540, 1),
"t" : NumberLong(1)
},
"lastAppliedWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastDurableWallTime" : ISODate("2022-01-22T23:19:00.303Z")
},
"lastStableRecoveryTimestamp" : Timestamp(1642893508, 1),
"electionCandidateMetrics" : {
"lastElectionReason" : "electionTimeout",
"lastElectionDate" : ISODate("2022-01-22T13:57:17.441Z"),
"electionTerm" : NumberLong(1),
"lastCommittedOpTimeAtElection" : {
"ts" : Timestamp(1642859827, 1),
"t" : NumberLong(-1)
},
"lastSeenOpTimeAtElection" : {
"ts" : Timestamp(1642859827, 1),
"t" : NumberLong(-1)
},
"numVotesNeeded" : 2,
"priorityAtElection" : 1,
"electionTimeoutMillis" : NumberLong(10000),
"numCatchUpOps" : NumberLong(0),
"newTermStartDate" : ISODate("2022-01-22T13:57:17.478Z"),
"wMajorityWriteAvailabilityDate" : ISODate("2022-01-22T13:57:18.531Z")
},
"members" : [
{
"_id" : 0,
"name" : "cfg1.contoh.com:27019",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 34202,
"optime" : {
"ts" : Timestamp(1642893540, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2022-01-22T23:19:00Z"),
"lastAppliedWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastDurableWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"electionTime" : Timestamp(1642859837, 1),
"electionDate" : ISODate("2022-01-22T13:57:17Z"),
"configVersion" : 1,
"configTerm" : 1,
"self" : true,
"lastHeartbeatMessage" : ""
},
{
"_id" : 1,
"name" : "cfg2.contoh.com:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 33714,
"optime" : {
"ts" : Timestamp(1642893539, 1),
"t" : NumberLong(1)
},
"optimeDurable" : {
"ts" : Timestamp(1642893539, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2022-01-22T23:18:59Z"),
"optimeDurableDate" : ISODate("2022-01-22T23:18:59Z"),
"lastAppliedWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastDurableWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastHeartbeat" : ISODate("2022-01-22T23:19:00.302Z"),
"lastHeartbeatRecv" : ISODate("2022-01-22T23:19:00.013Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncSourceHost" : "cfg1.contoh.com:27019",
"syncSourceId" : 0,
"infoMessage" : "",
"configVersion" : 1,
"configTerm" : 1
},
{
"_id" : 2,
"name" : "cfg3.contoh.com:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 33714,
"optime" : {
"ts" : Timestamp(1642893539, 1),
"t" : NumberLong(1)
},
"optimeDurable" : {
"ts" : Timestamp(1642893539, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2022-01-22T23:18:59Z"),
"optimeDurableDate" : ISODate("2022-01-22T23:18:59Z"),
"lastAppliedWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastDurableWallTime" : ISODate("2022-01-22T23:19:00.303Z"),
"lastHeartbeat" : ISODate("2022-01-22T23:19:00.223Z"),
"lastHeartbeatRecv" : ISODate("2022-01-22T23:19:00.256Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncSourceHost" : "cfg1.contoh.com:27019",
"syncSourceId" : 0,
"infoMessage" : "",
"configVersion" : 1,
"configTerm" : 1
}
],
"ok" : 1,
"$gleStats" : {
"lastOpTime" : Timestamp(0, 0),
"electionId" : ObjectId("7fffffff0000000000000001")
},
"lastCommittedOpTime" : Timestamp(1642893540, 1),
"$clusterTime" : {
"clusterTime" : Timestamp(1642893540, 1),
"signature" : {
"hash" : BinData(0,"TungAYubiqHZfoEyC7jMlStH1ZY="),
"keyId" : NumberLong("7056029271826890775")
}
},
"operationTime" : Timestamp(1642893540, 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment