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允许您指定某些应用程序操作使用某些mongodinstances.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. For use in managing data distribution and deployment patterns.区域表示分片集合的一个或多个分片键值范围。MongoDB仅将区域覆盖的分片数据的读写路由到该区域内的分片。用于管理数据分发和部署模式。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 Self-Managed Replica Set.部署地理冗余的自我管理副本集。