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的集群复制工具,可以满足迁移和同步的需求,进一步实现灾备和多活功能。
报如下日志
Connect to mongodb://user:xxxxx@a:27000,b:27000,c:27000 failed. server returned error on SASL authentication step: Authentication failed.
a,b,c为三台mongo分片实例ip,user和xxx代表用户,密码
源 集群,mongos,mongo-config设置了密码,shard上都使用keyfile,开启auth,每个shard上其实没有用户密码登录 但是如果要作为源同步,看了下配置文件 是需要 对每个shard都设置一个用户密码,不然在开启auth的情况下访问失败吧
报如下日志 Connect to mongodb://user:xxxxx@a:27000,b:27000,c:27000 failed. server returned error on SASL authentication step: Authentication failed. a,b,c为三台mongo分片实例ip,user和xxx代表用户,密码
在开启auth得情况,这个是不是一定得对每个shard进行设置用户密码,才可以进行集群到集群的同步。