Database Manual / Self-Managed Deployments / Deploy and Manage Self-Managed Sharded Clusters / Administration

Back Up Self-Managed Cluster Metadata备份自我管理的群集元数据

This procedure shuts down the mongod instance of a config server in order to create a backup of a sharded cluster's metadata. 此过程关闭配置服务器mongod实例,以创建分片集群元数据的备份。The cluster's config servers store all of the cluster's metadata, most importantly the mapping from chunks to shards.集群的配置服务器存储集群的所有元数据,最重要的是从分片的映射。

When you perform this procedure, the cluster remains operational [1].执行此过程时,群集将保持运行[1]

  1. Disable the cluster balancer process temporarily. See Disable the Balancer for more information.暂时禁用群集平衡器进程。有关更多信息,请参阅禁用平衡器
  2. Shut down one of the config databases.关闭其中一个配置数据库。
  3. Create a full copy of the data files (i.e. the path specified by the dbPath option for the config instance.)创建数据文件的完整副本(即配置实例的dbPath选项指定的路径。)
  4. Restart the original configuration server.重新启动原始配置服务器。
  5. Re-enable the balancer to allow the cluster to resume normal balancing operations. See the Disable the Balancer section for more information on managing the balancer process.重新启用平衡器,以允许群集恢复正常的平衡操作。有关管理平衡器进程的更多信息,请参阅禁用平衡器部分
[1] While one of the three config servers is unavailable, the cluster cannot split any chunks nor can it migrate chunks between shards. Your application will be able to write data to the cluster. 当三个配置服务器中的一个不可用时,集群无法分割任何块,也无法在分片之间迁移块。应用程序将能够向集群写入数据。See Config Servers for more information.有关更多信息,请参阅配置服务器