is there a limit for CopyDatabase in Mongo

不问归期 提交于 2019-12-12 01:38:55

问题


I'm copying 100Million records (about 97G) data to another server using copyDatabase in Mongo. Both servers have more than 500G diskspace. However, i notice although the process is still running, but the actual files are not added anymore. stop at xxxxx.11 any idea?


回答1:


Copy database will move collection data over, then build indexes for each collection. Building indexes on a 100GB data set can take a lot of time (especially with small amounts of RAM). It's likely that you're in the middle of a large index build.

You can check the progress by watching the logs and running db.currentOp() in the shell on the destination DB.



来源:https://stackoverflow.com/questions/11532139/is-there-a-limit-for-copydatabase-in-mongo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!