OPTIONS
翻译或纠错本页面

MongoDB部署中的分离操作

操作概述

MongoDB拥有许多特性,包括允许数据库管理员和开发者在部署数据库的过程中通过一些功能或地理组群对数据库应用进行分割操作。

This capability provides “data center awareness,” which allows applications to target MongoDB deployments with consideration of the physical location of the mongod instances. MongoDB supports segmentation of operations across different dimensions, which may include multiple data centers and geographical regions in multi-data center deployments, racks, networks, or power circuits in single data center deployments.

MongoDB 也支持

特别是在MongoDB中你可以:

  • 确保写入操作传递给了一个或多个复制集中的指定成员。

  • 确保复制集中的指定成员响应了查询操作。

  • ensure that specific ranges of your shard key balance onto and reside on specific shards.
  • combine the above features in a single distributed deployment, on a per-operation (for read and write operations) and collection (for chunk distribution in sharded clusters distribution) basis.

For full documentation of these features, see the following documentation in the MongoDB Manual:

  • Read Preferences,目标应用如何对复制集成员进行读取操作。

  • Write Concerns, which controls how MongoDB ensures that write operations propagate to members of a replica set.
  • Replica Set Tags, which control how applications create and interact with custom groupings of replica set members to create custom application-specific read preferences and write concerns.
  • Tag Aware Sharding, which allows MongoDB administrators to define an application-specific balancing policy, to control how documents belonging to specific ranges of a shard key distribute to shards in the sharded cluster.

参见

Before adding operational segregation features to your application and MongoDB deployment, become familiar with all documentation of replication, and sharding.