Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持mongos吗 该怎么配置 #30

Open
codech opened this issue Apr 13, 2020 · 5 comments
Open

支持mongos吗 该怎么配置 #30

codech opened this issue Apr 13, 2020 · 5 comments

Comments

@codech
Copy link

codech commented Apr 13, 2020

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

@zhr85210078
Copy link
Owner

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

@codech
Copy link
Author

codech commented Apr 15, 2020

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

@zhr85210078
Copy link
Owner

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

@codech
Copy link
Author

codech commented Apr 19, 2020

建议支持Mongos

@mapleFdg
Copy link

建议支持Mongos

有没有支持Mongos的方案?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants