mongodb > 3.0.0导入数据特别慢
过去多啦不再A梦
过去多啦不再A梦 2017-05-02 09:18:22
0
2
769

使用mongodump导出后,v3.x 相比 v2.6.6 mongorestore导入速度慢了不止一个数量级 大概200万的数据(2GB) 总共只需要5分钟的样子 v3.x不知道是不是因为使用了身份验证的原因导入只有3MB/S

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
左手右手慢动作

I migrated and imported more than 300 GB of data. It took two days to import only a few hundred MB

曾经蜡笔没有小新

I have also encountered situations where data recovery is slow or stuck. I was restoring data in a replica set environment. After checking the log, I found that: if the secondary node is disconnected, when executing the above recovery command on the primary node, due to the Arbiter The heartbeat mechanism will cause the following error:

2016-03-28T16:56:52.304+0800 I REPL     [ReplicationExecutor] Error in heartbeat request to 192.168.8.37:27017; Location18915 Failed attempt to connect to 192.168.8.37:27017; couldn't connect to server 192.168.8.37:27017 (192.168.8.37), connection attempt failed

Then the entire progress bar got stuck.

A situation is provided for reference only.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template