1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
| > rs.status() { "operationTime" : Timestamp(0, 0), "ok" : 0, "errmsg" : "no replset config has been received", "code" : 94, "codeName" : "NotYetInitialized", "$clusterTime" : { "clusterTime" : Timestamp(0, 0), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } } } > rs.initiate() { "info2" : "no configuration specified. Using a default configuration for the set", "me" : "127.0.0.1:27017", "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1568625811, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } }, "operationTime" : Timestamp(1568625811, 1) } screensaver:OTHER> rs.status() { "set" : "screensaver", "date" : ISODate("2019-09-16T09:23:35.861Z"), "myState" : 1, "term" : NumberLong(1), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "heartbeatIntervalMillis" : NumberLong(2000), "optimes" : { "lastCommittedOpTime" : { "ts" : Timestamp(1568625814, 4), "t" : NumberLong(1) }, "lastCommittedWallTime" : ISODate("2019-09-16T09:23:34.040Z"), "readConcernMajorityOpTime" : { "ts" : Timestamp(1568625814, 4), "t" : NumberLong(1) }, "readConcernMajorityWallTime" : ISODate("2019-09-16T09:23:34.040Z"), "appliedOpTime" : { "ts" : Timestamp(1568625814, 4), "t" : NumberLong(1) }, "durableOpTime" : { "ts" : Timestamp(1568625814, 4), "t" : NumberLong(1) }, "lastAppliedWallTime" : ISODate("2019-09-16T09:23:34.040Z"), "lastDurableWallTime" : ISODate("2019-09-16T09:23:34.040Z") }, "lastStableRecoveryTimestamp" : Timestamp(1568625814, 4), "lastStableCheckpointTimestamp" : Timestamp(1568625814, 4), "members" : [ { "_id" : 0, "name" : "127.0.0.1:27017", "ip" : "127.0.0.1", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 19222, "optime" : { "ts" : Timestamp(1568625814, 4), "t" : NumberLong(1) }, "optimeDate" : ISODate("2019-09-16T09:23:34Z"), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "infoMessage" : "could not find member to sync from", "electionTime" : Timestamp(1568625811, 2), "electionDate" : ISODate("2019-09-16T09:23:31Z"), "configVersion" : 1, "self" : true, "lastHeartbeatMessage" : "" } ], "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1568625814, 4), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } }, "operationTime" : Timestamp(1568625814, 4) } screensaver:PRIMARY>
|