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

源库是mongos #69

Closed zengjiancang closed 5 years ago

zengjiancang commented 5 years ago

connect source mongodb, set username and password if enable authority.

split by comma(,) if use multiple instance in one replica-set.

split by semicolon(;) if sharding enable.

mongo_urls = mongodb://username:password@127.0.0.1:20040,127.0.0.1:20041

这个参数表示可以源库配置为mongos,但是我自己配置源库是mongos,使用direct的方式,会报错在源库找不到mongos,请问是direct方式不支持源库是mongos吗?

vinllen commented 5 years ago

sharding请从shard分片进行oplog拉取