node-mongodb-es-connector icon indicating copy to clipboard operation
node-mongodb-es-connector copied to clipboard

支持mongos吗 该怎么配置

Open codech opened this issue 4 years ago • 5 comments

1、支持mongos吗 该怎么配置 2、几千万的大表同步 是一次性取出所有数据吗

codech avatar Apr 13 '20 11:04 codech

主要是根据mongo-oplog同步数据 大量数据也是根据配置文件设置的,比如一次取500条,同步到es,循环往复

zhr85210078 avatar Apr 14 '20 01:04 zhr85210078

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 报这个错

codech avatar Apr 15 '20 09:04 codech

MongoError: can't use 'local' database through mongos Reconnecting... mongodb 必须是replica结构,才能用mongo-oplog

zhr85210078 avatar Apr 19 '20 06:04 zhr85210078

建议支持Mongos

codech avatar Apr 19 '20 08:04 codech

建议支持Mongos

有没有支持Mongos的方案?

mapleFdg avatar Apr 24 '20 03:04 mapleFdg