Data Center Awareness数据中心意识
On this page本页内容
MongoDB provides a number of features that allow application developers and database administrators to customize the behavior of a sharded cluster or replica set deployment so that MongoDB may be more "data center aware," or allow operational and location-based separation.MongoDB提供了许多功能,允许应用程序开发人员和数据库管理员自定义分片集群或副本集部署的行为,以便MongoDB可以更“了解数据中心”,或允许操作和基于位置的分离。
MongoDB also supports workload isolation based on functional parameters, to ensure that certain MongoDB还支持基于功能参数的工作负载隔离,以确保某些mongod
instances are only used for reporting workloads or that certain high-frequency portions of a sharded collection only exist on specific shards.mongod
实例仅用于报告工作负载,或者确保分片集合的某些高频部分仅存在于特定的分片上。
The following documents, found either in this section or other sections of this manual, provide information on customizing a deployment for operation- and location-based separation:本节或本手册其他章节中的以下文档提供了有关自定义部署以实现基于操作和位置的分离的信息:
Workload Isolation in MongoDB DeploymentsMongoDB部署中的工作负载隔离MongoDB lets you specify that certain application operations use certainMongoDB允许您指定某些应用程序操作使用某些mongod
instances.mongod
实例。Zones分区A zone represents one or more ranges of shard key values for a sharded collection.一个区域表示一个分片集合的一个或多个分片键值范围。MongoDB routes reads and writes for sharded data covered by a zone only to shards inside that zone.MongoDB只将区域覆盖的分片数据的读写路由到该区域内的分片。For use in managing data distribution and deployment patterns.用于管理数据分发和部署模式。Manage Shard Zones管理分片区域Administrative tasks related to configuring zones in sharded clusters与在分片集群中配置区域相关的管理任务
Further Reading进一步阅读
The Write Concern and Read Preference documents, which address capabilities related to data center awareness.写入关注和读取首选项文档,其中介绍了与数据中心意识相关的功能。Deploy a Geographically Redundant Replica Set.部署地理位置冗余的复制副本集。