ยง2024-11-05
Supposed you have a relicationSet running at mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017
- terminal A
# socat -v TCP4-LISTEN:27018,fork TCP4:redisMongo03.yushei.com.tw:27017
socat -v TCP4-LISTEN:27018,fork TCP4:redisMongo03.yushei.com.tw:27017
2024/11/05 10:02:43.000271407 length=361 from=0 to=360 i...a........\a......admin.$cmd.........B....ismaster.....\bhelloOk...client......application......name.....mongosh 2.3.3...driver.8....name.....nodejs|mongosh..version.\r...6.10.0|2.3.3...platform.....Node.js v20.18.0, LE..os.i....name.....linux..architecture.....arm64..version.....4.14.209-160.339.amzn2.aarch64..type.....Linux....compression......0.....none...< 2024/11/05 10:02:43.000275415 length=895 from=0 to=894 .....~'.a.......\b...................[...\bhelloOk...topologyVersion.-...\aprocessId.f<.fN........counter.$.........hosts.}....0.!...redisMongo03.yushei.com.tw:27017..1.!...redisMongo04.yushei.com.tw:27017..2.!...redisMongo05.yushei.com.tw:27017...setName.\v...ys20220318..setVersion.....\bismaster..\bsecondary...primary.!...redisMongo03.yushei.com.tw:27017..me.!...redisMongo03.yushei.com.tw:27017.\aelectionId............,.lastWrite......opTime......ts......|)g.t.,........ lastWriteDate..N.......majorityOpTime......ts......|)g.t.,........ majorityWriteDate..N........maxBsonObjectSize......maxMessageSizeBytes..l...maxWriteBatchSize..... localTime..Z.......logicalSessionTimeoutMinutes......connectionId.)r...minWireVersion......maxWireVersion.\r...\breadOnly...ok........?.$clusterTime.X....clusterTime......|)g.signature.3....hash......^....\r.... !9.....2x.keyId.....MZ.f...operationTime......|)g.> 2024/11/05 10:02:43.000783600 length=236 from=361 to=596 ....b........\a............hello......maxAwaitTimeMS..'...topologyVersion.-...\aprocessId.f<.fN........counter.$.........$clusterTime.X....clusterTime......|)g.signature.3....hash......^....\r.... !9.....2x.keyId.....MZ.f...$db.....admin..
.....