Location>code7788 >text

Explaining Command Parameters in mongodb

Popularity:43 ℃/2024-09-19 11:20:43
rs0:PRIMARY> () { "set" : "rs0", "date" : ISODate("2024-09-14T06:44:36.882Z"), "myState" : 1, "term" : NumberLong(510), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "heartbeatIntervalMillis" : NumberLong(2000), "majorityVoteCount" : 2, "writeMajorityCount" : 2, "optimes" : { "lastCommittedOpTime" : { "ts" : Timestamp(0, 0), "t" : NumberLong(-1) }, "lastCommittedWallTime" : ISODate("1970-01-01T00:00:00Z"), "appliedOpTime" : { "ts" : Timestamp(1726296270, 1), "t" : NumberLong(510) }, "durableOpTime" : { "ts" : Timestamp(1726296270, 1), "t" : NumberLong(510) }, "lastAppliedWallTime" : ISODate("2024-09-14T06:44:30.859Z"), "lastDurableWallTime" : ISODate("2024-09-14T06:44:30.859Z") }, "lastStableRecoveryTimestamp" : Timestamp(1725300368, 3), "lastStableCheckpointTimestamp" : Timestamp(1725300368, 3), "electionCandidateMetrics" : { "lastElectionReason" : "electionTimeout", "lastElectionDate" : ISODate("2024-09-14T06:28:20.630Z"), "electionTerm" : NumberLong(510), "lastCommittedOpTimeAtElection" : { "ts" : Timestamp(0, 0), "t" : NumberLong(-1) }, "lastSeenOpTimeAtElection" : { "ts" : Timestamp(1726284227, 1), "t" : NumberLong(509) }, "numVotesNeeded" : 2, "priorityAtElection" : 2, "electionTimeoutMillis" : NumberLong(10000), "numCatchUpOps" : NumberLong(0), "newTermStartDate" : ISODate("2024-09-14T06:28:20.830Z") }, "members" : [ { "_id" : 0, "name" : "mongo1:27017", "health" : 1, "state" : 9, "stateStr" : "ROLLBACK", "uptime" : 987, "optime" : { "ts" : Timestamp(1726197065, 1), "t" : NumberLong(505) }, "optimeDurable" : { "ts" : Timestamp(1726197065, 1), "t" : NumberLong(505) }, "optimeDate" : ISODate("2024-09-13T03:11:05Z"), "optimeDurableDate" : ISODate("2024-09-13T03:11:05Z"), "lastHeartbeat" : ISODate("2024-09-14T06:44:35.841Z"), "lastHeartbeatRecv" : ISODate("2024-09-14T06:44:36.665Z"), "pingMs" : NumberLong(0), "lastHeartbeatMessage" : "", "syncingTo" : "mongo2:27017", "syncSourceHost" : "mongo2:27017", "syncSourceId" : 1, "infoMessage" : "", "configVersion" : 1950478 }, { "_id" : 1, "name" : "mongo2:27017", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 990, "optime" : { "ts" : Timestamp(1726296270, 1), "t" : NumberLong(510) }, "optimeDate" : ISODate("2024-09-14T06:44:30Z"), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "infoMessage" : "", "electionTime" : Timestamp(1726295300, 1), "electionDate" : ISODate("2024-09-14T06:28:20Z"), "configVersion" : 1950478, "self" : true, "lastHeartbeatMessage" : "" }, { "_id" : 2, "name" : "mongo3:27017", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 987, "optime" : { "ts" : Timestamp(1726197065, 1), "t" : NumberLong(505) }, "optimeDurable" : { "ts" : Timestamp(1726197065, 1), "t" : NumberLong(505) }, "optimeDate" : ISODate("2024-09-13T03:11:05Z"), "optimeDurableDate" : ISODate("2024-09-13T03:11:05Z"), "lastHeartbeat" : ISODate("2024-09-14T06:44:34.930Z"), "lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"), "pingMs" : NumberLong(1), "lastHeartbeatMessage" : "", "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "infoMessage" : "", "configVersion" : 1829326 } ], "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1726296270, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } }, "operationTime" : Timestamp(1726296270, 1) } rs0:PRIMARY>