Наталья
rs0:PRIMARY> rs.status()
{
"set" : "rs0",
"date" : ISODate("2020-03-10T15:24:16.715Z"),
"myState" : 1,
"term" : NumberLong(3),
"syncingTo" : "",
"syncSourceHost" : "",
"syncSourceId" : -1,
"heartbeatIntervalMillis" : NumberLong(2000),
"majorityVoteCount" : 2,
"writeMajorityCount" : 2,
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"lastCommittedWallTime" : ISODate("2020-03-10T15:24:14.577Z"),
"readConcernMajorityOpTime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"readConcernMajorityWallTime" : ISODate("2020-03-10T15:24:14.577Z"),
"appliedOpTime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"durableOpTime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"lastAppliedWallTime" : ISODate("2020-03-10T15:24:14.577Z"),
"lastDurableWallTime" : ISODate("2020-03-10T15:24:14.577Z")
},
"lastStableRecoveryTimestamp" : Timestamp(1583853821, 1),
"lastStableCheckpointTimestamp" : Timestamp(1583853821, 1),
"electionCandidateMetrics" : {
"lastElectionReason" : "electionTimeout",
"lastElectionDate" : ISODate("2020-03-05T13:18:19.614Z"),
"termAtElection" : NumberLong(3),
"lastCommittedOpTimeAtElection" : {
"ts" : Timestamp(1583413947, 1),
"t" : NumberLong(2)
},
"lastSeenOpTimeAtElection" : {
"ts" : Timestamp(1583413959, 1),
"t" : NumberLong(2)
},
"numVotesNeeded" : 2,
"priorityAtElection" : 1,
"electionTimeoutMillis" : NumberLong(10000),
"numCatchUpOps" : NumberLong(1650553971),
"newTermStartDate" : ISODate("2020-03-05T13:18:20.523Z"),
"wMajorityWriteAvailabilityDate" : ISODate("2020-03-05T13:18:21.163Z")
},
"members" : [
{
"_id" : 0,
"name" : "10.67.50.69:27017",
"ip" : "10.67.50.69",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 439569,
"optime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"optimeDate" : ISODate("2020-03-10T15:24:14Z"),
"syncingTo" : "",
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"electionTime" : Timestamp(1583414299, 1),
"electionDate" : ISODate("2020-03-05T13:18:19Z"),
"configVersion" : 3,
"self" : true,
"lastHeartbeatMessage" : ""
},
{
"_id" : 1,
"name" : "10.67.50.70:27017",
"ip" : "10.67.50.70",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 439513,
"optime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"optimeDurable" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"optimeDate" : ISODate("2020-03-10T15:24:14Z"),
"optimeDurableDate" : ISODate("2020-03-10T15:24:14Z"),
"lastHeartbeat" : ISODate("2020-03-10T15:24:15.263Z"),
"lastHeartbeatRecv" : ISODate("2020-03-10T15:24:15.189Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncingTo" : "10.67.50.74:27017",
"syncSourceHost" : "10.67.50.74:27017",
"syncSourceId" : 2,
"infoMessage" : "",
"configVersion" : 3
},
{
"_id" : 2,
"name" : "10.67.50.74:27017",
"ip" : "10.67.50.74",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 439567,
"optime" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"optimeDurable" : {
"ts" : Timestamp(1583853854, 1),
"t" : NumberLong(3)
},
"optimeDate" : ISODate("2020-03-10T15:24:14Z"),
"optimeDurableDate" : ISODate("2020-03-10T15:24:14Z"),
"lastHeartbeat" : ISODate("2020-03-10T15:24:15.262Z"),
"lastHeartbeatRecv" : ISODate("2020-03-10T15:24:15.189Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "",
"syncingTo" : "10.67.50.69:27017",