Output of config server :
MongoDB Enterprise MPODS-PRA-001:PRIMARY> rs.status()
{
“set” : “MPODS-PRA-001”,
“date” : ISODate(“2022-08-05T10:23:07.831Z”),
“myState” : 1,
“term” : NumberLong(1),
“syncSourceHost” : “”,
“syncSourceId” : -1,
“configsvr” : true,
“heartbeatIntervalMillis” : NumberLong(2000),
“majorityVoteCount” : 1,
“writeMajorityCount” : 1,
“votingMembersCount” : 1,
“writableVotingMembersCount” : 1,
“optimes” : {
“lastCommittedOpTime” : {
“ts” : Timestamp(1659694987, 1),
“t” : NumberLong(1)
},
“lastCommittedWallTime” : ISODate(“2022-08-05T10:23:07.091Z”),
“readConcernMajorityOpTime” : {
“ts” : Timestamp(1659694987, 1),
“t” : NumberLong(1)
},
“appliedOpTime” : {
“ts” : Timestamp(1659694987, 1),
“t” : NumberLong(1)
},
“durableOpTime” : {
“ts” : Timestamp(1659694987, 1),
“t” : NumberLong(1)
},
“lastAppliedWallTime” : ISODate(“2022-08-05T10:23:07.091Z”),
“lastDurableWallTime” : ISODate(“2022-08-05T10:23:07.091Z”)
},
“lastStableRecoveryTimestamp” : Timestamp(1659694986, 1),
“electionCandidateMetrics” : {
“lastElectionReason” : “electionTimeout”,
“lastElectionDate” : ISODate(“2022-08-05T10:21:06.007Z”),
“electionTerm” : NumberLong(1),
“lastCommittedOpTimeAtElection” : {
“ts” : Timestamp(1659694865, 1),
“t” : NumberLong(-1)
},
“lastSeenOpTimeAtElection” : {
“ts” : Timestamp(1659694865, 1),
“t” : NumberLong(-1)
},
“numVotesNeeded” : 1,
“priorityAtElection” : 1,
“electionTimeoutMillis” : NumberLong(10000),
“newTermStartDate” : ISODate(“2022-08-05T10:21:06.217Z”),
“wMajorityWriteAvailabilityDate” : ISODate(“2022-08-05T10:21:07.634Z”)
},
“members” : [
{
“_id” : 0,
“name” : “localhost:27009”,
“health” : 1,
“state” : 1,
“stateStr” : “PRIMARY”,
“uptime” : 215,
“optime” : {
“ts” : Timestamp(1659694987, 1),
“t” : NumberLong(1)
},
“optimeDate” : ISODate(“2022-08-05T10:23:07Z”),
“lastAppliedWallTime” : ISODate(“2022-08-05T10:23:07.091Z”),
“lastDurableWallTime” : ISODate(“2022-08-05T10:23:07.091Z”),
“syncSourceHost” : “”,
“syncSourceId” : -1,
“infoMessage” : “”,
“electionTime” : Timestamp(1659694866, 1),
“electionDate” : ISODate(“2022-08-05T10:21:06Z”),
“configVersion” : 1,
“configTerm” : 1,
“self” : true,
“lastHeartbeatMessage” : “”
}
],
“ok” : 1,
“$gleStats” : {
“lastOpTime” : Timestamp(1659694865, 1),
“electionId” : ObjectId(“7fffffff0000000000000001”)
},
“lastCommittedOpTime” : Timestamp(1659694987, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1659694987, 1),
“signature” : {
“hash” : BinData(0,“AAAAAAAAAAAAAAAAAAAAAAAAAAA=”),
“keyId” : NumberLong(0)
}
},
“operationTime” : Timestamp(1659694987, 1)
}
MongoDB Enterprise MPODS-PRA-001:PRIMARY> exit
Output from data node :
MongoDB Enterprise MPODS-PRA-001:PRIMARY> rs.status()
{
“set” : “MPODS-PRA-001”,
“date” : ISODate(“2022-08-05T11:15:48.369Z”),
“myState” : 1,
“term” : NumberLong(6),
“syncSourceHost” : “”,
“syncSourceId” : -1,
“heartbeatIntervalMillis” : NumberLong(2000),
“majorityVoteCount” : 2,
“writeMajorityCount” : 2,
“votingMembersCount” : 2,
“writableVotingMembersCount” : 2,
“optimes” : {
“lastCommittedOpTime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“lastCommittedWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“readConcernMajorityOpTime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“appliedOpTime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“durableOpTime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“lastAppliedWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“lastDurableWallTime” : ISODate(“2022-08-05T11:15:45.185Z”)
},
“lastStableRecoveryTimestamp” : Timestamp(1659698085, 1),
“electionCandidateMetrics” : {
“lastElectionReason” : “electionTimeout”,
“lastElectionDate” : ISODate(“2022-08-05T10:23:53.911Z”),
“electionTerm” : NumberLong(6),
“lastCommittedOpTimeAtElection” : {
“ts” : Timestamp(0, 0),
“t” : NumberLong(-1)
},
“lastSeenOpTimeAtElection” : {
“ts” : Timestamp(1659628001, 1),
“t” : NumberLong(5)
},
“numVotesNeeded” : 2,
“priorityAtElection” : 1,
“electionTimeoutMillis” : NumberLong(10000),
“numCatchUpOps” : NumberLong(0),
“newTermStartDate” : ISODate(“2022-08-05T10:23:53.973Z”),
“wMajorityWriteAvailabilityDate” : ISODate(“2022-08-05T10:23:54.870Z”)
},
“members” : [
{
“_id” : 0,
“name” : “localhost:27010”,
“health” : 1,
“state” : 1,
“stateStr” : “PRIMARY”,
“uptime” : 3192,
“optime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“optimeDate” : ISODate(“2022-08-05T11:15:45Z”),
“lastAppliedWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“lastDurableWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“syncSourceHost” : “”,
“syncSourceId” : -1,
“infoMessage” : “”,
“electionTime” : Timestamp(1659695033, 1),
“electionDate” : ISODate(“2022-08-05T10:23:53Z”),
“configVersion” : 3,
“configTerm” : 6,
“self” : true,
“lastHeartbeatMessage” : “”
},
{
“_id” : 1,
“name” : “localhost:27011”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 3119,
“optime” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“optimeDurable” : {
“ts” : Timestamp(1659698145, 1),
“t” : NumberLong(6)
},
“optimeDate” : ISODate(“2022-08-05T11:15:45Z”),
“optimeDurableDate” : ISODate(“2022-08-05T11:15:45Z”),
“lastAppliedWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“lastDurableWallTime” : ISODate(“2022-08-05T11:15:45.185Z”),
“lastHeartbeat” : ISODate(“2022-08-05T11:15:48.164Z”),
“lastHeartbeatRecv” : ISODate(“2022-08-05T11:15:47.167Z”),
“pingMs” : NumberLong(0),
“lastHeartbeatMessage” : “”,
“syncSourceHost” : “localhost:27010”,
“syncSourceId” : 0,
“infoMessage” : “”,
“configVersion” : 3,
“configTerm” : 6
}
],
“ok” : 1,
“$clusterTime” : {
“clusterTime” : Timestamp(1659698145, 1),
“signature” : {
“hash” : BinData(0,“AAAAAAAAAAAAAAAAAAAAAAAAAAA=”),
“keyId” : NumberLong(0)
}
},
“operationTime” : Timestamp(1659698145, 1)
}
MongoDB Enterprise MPODS-PRA-001:PRIMARY>