如何进行选择性Mongo恢复? [英] How to do selective Mongo recovery?

查看:69
本文介绍了如何进行选择性Mongo恢复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个Mongo副本集(一个主副本和几个次副本),其中有两个数据库:db1db2.一个辅助Mongo崩溃并丢失了其数据.现在,当此Mongo重新启动时,它将恢复,并从主服务器复制 db1db2.

Suppose I have a Mongo replica set (a primary and few secondaries) with two databases: db1 and db2. One secondary Mongo crashed and lost its data. Now when this Mongo restarts it will recover and copy both db1 and db2 from the primary.

由于这种恢复需要很多时间,因此我希望此二级Mongo在复制时仅复制 db1(但 db1db2)恢复.我可以用Mongo 2.4.6做到吗?

Since such recovery takes a lot of time I would like this secondary Mongo to copy only db1 (but not both db1 and db2) upon recovery. Can I do it with Mongo 2.4.6 ?

推荐答案

MongoDB尚不具备选择性复制的能力.

MongoDB does not yet have the capacity for selective replication.

随意打开JIRA: https://jira.mongodb.org/secure/Dashboard .jspa 可能已经有一个,但是我进行的Google搜索无法显示出来.

Feel free to open a JIRA: https://jira.mongodb.org/secure/Dashboard.jspa there is probably already one but a Google search by me can't bring it up.

当然,这里可以加快速度的一种选择是实际上将数据从一个位置实际复制到另一个位置,而无需等待MongoDB的复制获得成功.

Of course, one option here, to sped things up, is to actually physically copy the data from one location to the other without waiting for MongoDBs replication to take hold.

正如@Stennie提到的,这实际上是选择性复制的JIRA: https://jira. mongodb.org/browse/SERVER-1559

As @Stennie mentions, this is actually the JIRA for selective replication: https://jira.mongodb.org/browse/SERVER-1559

这篇关于如何进行选择性Mongo恢复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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