replica01 [direct: primary] test > rs.status()
{
set: 'replica01',
date: ISODate("2022-07-13T20:22:53.088Z"),
myState: 1,
term: Long("1"),
syncSourceHost: '',
syncSourceId: -1,
heartbeatIntervalMillis: Long("2000"),
majorityVoteCount: 2,
writeMajorityCount: 2,
votingMembersCount: 3,
writableVotingMembersCount: 3,
optimes: {
lastCommittedOpTime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
lastCommittedWallTime: ISODate("2022-07-13T20:22:47.186Z"),
readConcernMajorityOpTime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
appliedOpTime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
durableOpTime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
lastAppliedWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastDurableWallTime: ISODate("2022-07-13T20:22:47.186Z")
},
lastStableRecoveryTimestamp: Timestamp({ t: 1657743717, i: 1 }),
electionCandidateMetrics: {
lastElectionReason: 'electionTimeout',
lastElectionDate: ISODate("2022-07-13T20:17:06.963Z"),
electionTerm: Long("1"),
lastCommittedOpTimeAtElection: { ts: Timestamp({ t: 1657743426, i: 1 }), t: Long("-1") },
lastSeenOpTimeAtElection: { ts: Timestamp({ t: 1657743426, i: 1 }), t: Long("-1") },
numVotesNeeded: 1,
priorityAtElection: 1,
electionTimeoutMillis: Long("10000"),
newTermStartDate: ISODate("2022-07-13T20:17:07.061Z"),
wMajorityWriteAvailabilityDate: ISODate("2022-07-13T20:17:07.152Z")
},
members: [
{
_id: 0,
name: '173.82.240.178:27017',
health: 1,
state: 1,
stateStr: 'PRIMARY',
uptime: 539,
optime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
optimeDate: ISODate("2022-07-13T20:22:47.000Z"),
lastAppliedWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastDurableWallTime: ISODate("2022-07-13T20:22:47.186Z"),
syncSourceHost: '',
syncSourceId: -1,
infoMessage: '',
electionTime: Timestamp({ t: 1657743426, i: 2 }),
electionDate: ISODate("2022-07-13T20:17:06.000Z"),
configVersion: 5,
configTerm: 1,
self: true,
lastHeartbeatMessage: ''
},
{
_id: 1,
name: 'mongo-node-1:27017',
health: 1,
state: 2,
stateStr: 'SECONDARY',
uptime: 222,
optime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
optimeDurable: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
optimeDate: ISODate("2022-07-13T20:22:47.000Z"),
optimeDurableDate: ISODate("2022-07-13T20:22:47.000Z"),
lastAppliedWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastDurableWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastHeartbeat: ISODate("2022-07-13T20:22:52.451Z"),
lastHeartbeatRecv: ISODate("2022-07-13T20:22:52.464Z"),
pingMs: Long("0"),
lastHeartbeatMessage: '',
syncSourceHost: '173.82.240.178:27017',
syncSourceId: 0,
infoMessage: '',
configVersion: 5,
configTerm: 1
},
{
_id: 2,
name: 'mongo-node-2:27017',
health: 1,
state: 2,
stateStr: 'SECONDARY',
uptime: 174,
optime: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
optimeDurable: { ts: Timestamp({ t: 1657743767, i: 1 }), t: Long("1") },
optimeDate: ISODate("2022-07-13T20:22:47.000Z"),
optimeDurableDate: ISODate("2022-07-13T20:22:47.000Z"),
lastAppliedWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastDurableWallTime: ISODate("2022-07-13T20:22:47.186Z"),
lastHeartbeat: ISODate("2022-07-13T20:22:52.500Z"),
lastHeartbeatRecv: ISODate("2022-07-13T20:22:51.486Z"),
pingMs: Long("0"),
lastHeartbeatMessage: '',
syncSourceHost: 'mongo-node-1:27017',
syncSourceId: 1,
infoMessage: '',
configVersion: 5,
configTerm: 1
}
],
ok: 1,
'$clusterTime': {
clusterTime: Timestamp({ t: 1657743767, i: 1 }),
signature: {
hash: Binary(Buffer.from("84b17e5c768b301786b693ea6d4292b200ab01c7", "hex"), 0),
keyId: Long("7119953804123963394")
}
},
operationTime: Timestamp({ t: 1657743767, i: 1 })
}