alibaba / MongoShake

MongoShake is a universal data replication platform based on MongoDB's oplog. Redundant replication and active-active replication are two most important functions. 基于mongodb oplog的集群复制工具,可以满足迁移和同步的需求,进一步实现灾备和多活功能。
GNU General Public License v3.0
1.72k stars 441 forks source link

想重新同步该如何做? #509

Closed liufeng1026 closed 3 years ago

liufeng1026 commented 3 years ago

[2020/12/13 17:37:46 CST] [INFO] start running with mode[full], fullBeginTs[0[0, 0]] [2020/12/13 17:37:46 CST] [INFO] source is replica or mongos, no need to fetching chunk map [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.204:27017 successfully [2020/12/13 17:37:46 CST] [INFO] Close session with mongodb://192.168.2.204:27017 [2020/12/13 17:37:46 CST] [INFO] all namespace: map[{}:{}] [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.221:27017 successfully [2020/12/13 17:37:46 CST] [INFO] replication from [replica] to [replica] [2020/12/13 17:37:46 CST] [INFO] document syncer-0 do replication for url=mongodb://192.168.2.204:27017 [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.204:27017 successfully [2020/12/13 17:37:46 CST] [INFO] Close session with mongodb://192.168.2.204:27017 [2020/12/13 17:37:46 CST] [INFO] DBSyncer id[0] source[mongodb://192.168.2.204:27017] target[mongodb://192.168.2.221:27017] startTime[2020-12-13 17:37:46.35928547 +0800 CST m=+0.022114390] collExecutor-5 sync ns {} to {} begin [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.221:27017 successfully [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.204:27017 successfully [2020/12/13 17:37:46 CST] [INFO] splitter[DocumentSplitter src[mongodb://192.168.2.204:27017] ns[{}] count[289674009] pieceSize[0] pieceNumber[1]] disable split or no need [2020/12/13 17:37:46 CST] [INFO] splitter[DocumentSplitter src[mongodb://192.168.2.204:27017] ns[{}] count[289674009] pieceSize[0] pieceNumber[1]] exits [2020/12/13 17:37:46 CST] [INFO] New session to mongodb://192.168.2.204:27017 successfully [2020/12/13 17:37:46 CST] [INFO] splitter reader finishes: DocumentReader src[mongodb://192.168.2.204:27017] ns[{}] query[map[]] [2020/12/13 17:37:46 CST] [INFO] Close session with mongodb://192.168.2.221:27017 [2020/12/13 17:37:46 CST] [INFO] Close session with mongodb://192.168.2.204:27017 [2020/12/13 17:37:46 CST] [INFO] DBSyncer id[0] source[mongodb://192.168.2.204:27017] target[mongodb://192.168.2.221:27017] startTime[2020-12-13 17:37:46.35928547 +0800 CST m=+0.022114390] collExecutor-5 sync ns {} to {} successful. db syncer-0 progress 100% [2020/12/13 17:37:46 CST] [INFO] syncer[DBSyncer id[0] source[mongodb://192.168.2.204:27017] target[mongodb://192.168.2.221:27017] startTime[2020-12-13 17:37:46.35928547 +0800 CST m=+0.022114390]] closed [2020/12/13 17:37:46 CST] [INFO] document syncer sync end [2020/12/13 17:37:46 CST] [INFO] Close session with mongodb://192.168.2.221:27017

liufeng1026 commented 3 years ago

能不能帮忙看下?