是在Mongo中的CopyDatabase的限制 [英] is there a limit for CopyDatabase in Mongo

查看:229
本文介绍了是在Mongo中的CopyDatabase的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mongo中使用copyDatabase将100万条记录(约97G)数据复制到另一个服务器。两个服务器都有超过500G的磁盘空间。但是,我注意到虽然进程仍在运行,但实际文件不再添加。停止在xxxxx.11任何想法?

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?

推荐答案

复制数据库将移动收集数据,在100GB数据集上构建索引可能需要很多时间(特别是对于少量RAM)。

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.

您可以通过观察日志并运行 db.currentOp来检查进度()在目标数据库的shell中。

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

这篇关于是在Mongo中的CopyDatabase的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆