基于mongo-shake-v2.4.16 的docker镜像制作和容器部署脚本
放在了https://github.com/lmxlmx/mongoShakeDocker
需要注意的是我是基于mongo sharding集群的同步
source和destination都是sharding集群
mongo sharding 集群的部署方式位于https://github.com/lmxlmx/mongoCluster/tree/dev可用
在做mongo 集群间同步时,需要重点注意collector.conf中的几个配置
mongo_urls 源集群的replica-set地址
mongo_cs_url 源集群的config server 地址
mongo_s_url 源集群的mongos地址
tunnel 通道模式,集群间同步使用direct
tunnel.address 目的集群的mongos地址
filter.namespace.white 需要同步的数据库
其他的视情况调整