发布于 2015-09-14 14:56:56 | 159 次阅读 | 评论: 0 | 来源: 网络整理

Overview

Restoring a single shard from backup with other unaffected shards requires a number of special considerations and practices. This document outlines the additional tasks you must perform when restoring a single shard.

Consider the following resources on backups in general as well as backup and restoration of sharded clusters specifically:

Procedure

Always restore sharded clusters as a whole. When you restore a single shard, keep in mind that the balancer process might have moved chunks to or from this shard since the last backup. If that’s the case, you must manually move those chunks, as described in this procedure.

  1. Restore the shard as you would any other mongod instance. See 系统备份策略 for overviews of these procedures.
  2. For all chunks that migrated away from this shard, you do not need to do anything at this time.. You do not need to delete these documents from the shard because the chunks are automatically filtered out from queries by mongos. You can remove these documents from the shard if you like, at your leisure.
  3. For chunks that migrated to this shard since the last backup, you must manually recover the chunks using backups of other shards, or some other source. To determine what chunks have moved, view the changelog collection in the 配置数据库内容.
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务