Open codech opened 4 years ago
主要是根据mongo-oplog同步数据 大量数据也是根据配置文件设置的,比如一次取500条,同步到es,循环往复
debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | oplog errors: MongoError: can't use 'local' database through mongos Reconnecting... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | REconnecting 1/times to MongoDB... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | Start to tail oplog now... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | oplog errors: MongoError: can't use 'local' database through mongos Reconnecting... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | REconnecting 2/times to MongoDB... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | Start to tail oplog now... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | oplog errors: MongoError: can't use 'local' database through mongos Reconnecting... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | REconnecting 3/times to MongoDB... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | Start to tail oplog now... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | oplog errors: MongoError: can't use 'local' database through mongos Reconnecting... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | REconnecting 4/times to MongoDB... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | Start to tail oplog now... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | oplog errors: MongoError: can't use 'local' database through mongos Reconnecting... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | REconnecting 5/times to MongoDB... debug: 2020-04-15 17:04:27 | debug | http://10.10.15.94:9200 | responder_post_test | Start to tail oplog now...
mongos 报这个错
MongoError: can't use 'local' database through mongos Reconnecting... mongodb 必须是replica结构,才能用mongo-oplog
建议支持Mongos
建议支持Mongos
有没有支持Mongos的方案?
1、支持mongos吗 该怎么配置 2、几千万的大表同步 是一次性取出所有数据吗