File Mongo
File Mongo
3447]
test> rs.initiate()
info2: 'no configuration specified. Using a default configuration for the set',
me: 'localhost:30002',
ok: 1
switched to db admin
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
}
},
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
},
operationTime: Timestamp({ t: 1713253286, i: 1 })
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
},
topologyVersion: {
processId: ObjectId('661e29783ef40a799067f14e'),
counter: Long('7')
},
setName: 'heThongLuuTru',
setVersion: 5,
ismaster: true,
secondary: false,
primary: 'localhost:30003',
me: 'localhost:30003',
electionId: ObjectId('7fffffff0000000000000002'),
lastWrite: {
opTime: { ts: Timestamp({ t: 1713254635, i: 1 }), t: Long('2') },
lastWriteDate: ISODate('2024-04-16T08:03:55.000Z'),
majorityWriteDate: ISODate('2024-04-16T08:03:55.000Z')
},
maxBsonObjectSize: 16777216,
maxMessageSizeBytes: 48000000,
maxWriteBatchSize: 100000,
localTime: ISODate('2024-04-16T08:04:05.665Z'),
logicalSessionTimeoutMinutes: 30,
connectionId: 59,
minWireVersion: 0,
maxWireVersion: 21,
readOnly: false,
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
},
isWritablePrimary: true
topologyVersion: {
processId: ObjectId('661e29783ef40a799067f14e'),
counter: Long('7')
},
setName: 'heThongLuuTru',
setVersion: 5,
ismaster: true,
secondary: false,
primary: 'localhost:30003',
me: 'localhost:30003',
electionId: ObjectId('7fffffff0000000000000002'),
lastWrite: {
lastWriteDate: ISODate('2024-04-16T08:11:46.000Z'),
majorityWriteDate: ISODate('2024-04-16T08:11:46.000Z')
},
maxBsonObjectSize: 16777216,
maxMessageSizeBytes: 48000000,
maxWriteBatchSize: 100000,
localTime: ISODate('2024-04-16T08:11:48.385Z'),
logicalSessionTimeoutMinutes: 30,
connectionId: 59,
minWireVersion: 0,
maxWireVersion: 21,
readOnly: false,
ok: 1,
'$clusterTime': {
signature: {
hash: Binary.createFromBase64('pQQZ24U/yaSUVV/0zwte2fT4Jug=', 0),
keyId: Long('7358365050723106822')
},
isWritablePrimary: true
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
},
ok: 1,
'$clusterTime': {
signature: {
keyId: Long('7358365050723106822')
},
operationTime: Timestamp({ t: 1713276868, i: 1 })
_id: 'heThongLuuTru',
version: 8,
term: 7,
members: [
_id: 0,
host: 'localhost:30002',
arbiterOnly: false,
buildIndexes: true,
hidden: false,
priority: 1,
tags: {},
secondaryDelaySecs: Long('0'),
votes: 1
},
_id: 1,
host: 'localhost:30001',
arbiterOnly: false,
buildIndexes: true,
hidden: false,
priority: 1,
tags: {},
secondaryDelaySecs: Long('0'),
votes: 1
},
_id: 2,
host: 'localhost:30003',
arbiterOnly: false,
buildIndexes: true,
hidden: false,
priority: 1,
tags: {},
secondaryDelaySecs: Long('0'),
votes: 1
},
_id: 3,
host: 'localhost:30004',
arbiterOnly: false,
buildIndexes: true,
hidden: false,
priority: 1,
tags: {},
secondaryDelaySecs: Long('0'),
votes: 1
},
_id: 4,
host: 'localhost:30005',
arbiterOnly: true,
buildIndexes: true,
hidden: false,
priority: 0,
tags: {},
secondaryDelaySecs: Long('0'),
votes: 1
],
protocolVersion: Long('1'),
writeConcernMajorityJournalDefault: true,
settings: {
chainingAllowed: true,
heartbeatIntervalMillis: 2000,
heartbeatTimeoutSecs: 10,
electionTimeoutMillis: 10000,
catchUpTimeoutMillis: -1,
catchUpTakeoverDelayMillis: 30000,
getLastErrorModes: {},
getLastErrorDefaults: { w: 1, wtimeout: 0 },
replicaSetId: ObjectId('661e2a0725f12e8bd65bf506')
... members: [
... ]
... })
... members: [
topologyVersion: {
processId: ObjectId('661e294c2526acba86775746'),
counter: Long('23')
},
hosts: [
'localhost:30002',
'localhost:30001',
'localhost:30003',
'localhost:30004'
],
arbiters: [ 'localhost:30005' ],
setName: 'heThongLuuTru',
setVersion: 8,
ismaster: true,
secondary: false,
primary: 'localhost:30001',
me: 'localhost:30001',
electionId: ObjectId('7fffffff0000000000000007'),
lastWrite: {
lastWriteDate: ISODate('2024-04-16T14:24:51.000Z'),
majorityWriteDate: ISODate('2024-04-16T14:24:51.000Z')
},
maxBsonObjectSize: 16777216,
maxMessageSizeBytes: 48000000,
maxWriteBatchSize: 100000,
localTime: ISODate('2024-04-16T14:25:00.431Z'),
logicalSessionTimeoutMinutes: 30,
connectionId: 120,
minWireVersion: 0,
maxWireVersion: 21,
readOnly: false,
ok: 1,
'$clusterTime': {
signature: {
hash: Binary.createFromBase64('tRma6UYDVYRsJn0fR4FPkclfoLk=', 0),
keyId: Long('7358365050723106822')
},
isWritablePrimary: true