mongo-cluster:PRIMARY> rs.status()
{
"set" : "mongo-cluster",
"date" : ISODate("2021-12-06T11:00:23.263Z"),
"myState" : 1,
"term" : NumberLong(19),
"syncSourceHost" : "",
"syncSourceId" : -1,
"heartbeatIntervalMillis" : NumberLong(2000),
"majorityVoteCount" : 2,
"writeMajorityCount" : 2,
"votingMembersCount" : 3,
"writableVotingMembersCount" : 3,
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"lastCommittedWallTime" : ISODate("2021-12-06T11:00:17.347Z"),
"readConcernMajorityOpTime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"readConcernMajorityWallTime" : ISODate("2021-12-06T11:00:17.347Z"),
"appliedOpTime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"durableOpTime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"lastAppliedWallTime" : ISODate("2021-12-06T11:00:17.347Z"),
"lastDurableWallTime" : ISODate("2021-12-06T11:00:17.347Z")
},
"lastStableRecoveryTimestamp" : Timestamp(1638788417, 1),
"electionCandidateMetrics" : {
"lastElectionReason" : "stepUpRequestSkipDryRun",
"lastElectionDate" : ISODate("2021-12-02T07:02:16.093Z"),
"electionTerm" : NumberLong(19),
"lastCommittedOpTimeAtElection" : {
"ts" : Timestamp(1638428533, 1),
"t" : NumberLong(18)
},
"lastSeenOpTimeAtElection" : {
"ts" : Timestamp(1638428533, 1),
"t" : NumberLong(18)
},
"numVotesNeeded" : 2,
"priorityAtElection" : 1,
"electionTimeoutMillis" : NumberLong(10000),
"priorPrimaryMemberId" : 1,
"numCatchUpOps" : NumberLong(0),
"newTermStartDate" : ISODate("2021-12-02T07:02:16.106Z"),
"wMajorityWriteAvailabilityDate" : ISODate("2021-12-02T07:02:18.107Z")
},
"members" : [
{
"_id" : 0,
"name" : "174.1.0.6:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 427920,
"optime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"optimeDate" : ISODate("2021-12-06T11:00:17Z"),
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"electionTime" : Timestamp(1638428536, 1),
"electionDate" : ISODate("2021-12-02T07:02:16Z"),
"configVersion" : 3,
"configTerm" : 19,
"self" : true,
"lastHeartbeatMessage" : ""
},
{
"_id" : 1,
"name" : "174.1.0.7:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 359881,
"optime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"optimeDurable" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"optimeDate" : ISODate("2021-12-06T11:00:17Z"),
"optimeDurableDate" : ISODate("2021-12-06T11:00:17Z"),
"lastHeartbeat" : ISODate("2021-12-06T11:00:21.530Z"),
"lastHeartbeatRecv" : ISODate("2021-12-06T11:00:21.530Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncSourceHost" : "174.1.0.6:27017",
"syncSourceId" : 0,
"infoMessage" : "",
"configVersion" : 3,
"configTerm" : 19
},
{
"_id" : 2,
"name" : "174.1.0.8:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 359879,
"optime" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"optimeDurable" : {
"ts" : Timestamp(1638788417, 1),
"t" : NumberLong(19)
},
"optimeDate" : ISODate("2021-12-06T11:00:17Z"),
"optimeDurableDate" : ISODate("2021-12-06T11:00:17Z"),
"lastHeartbeat" : ISODate("2021-12-06T11:00:21.534Z"),
"lastHeartbeatRecv" : ISODate("2021-12-06T11:00:21.530Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncSourceHost" : "174.1.0.7:27017",
"syncSourceId" : 1,
"infoMessage" : "",
"configVersion" : 3,
"configTerm" : 19
}
],
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1638788417, 1),
"signature" : {
"hash" : BinData(0,"UeCHJX2kYRT5awReraDGQBMt13E="),
"keyId" : NumberLong("7028523322010763269")
}
},
"operationTime" : Timestamp(1638788417, 1)
}
mongo-cluster:PRIMARY>