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

Operational Overview

MongoDB includes a cluster of features that allow database administrators and developers to segregate application operations to MongoDB deployments by functional or geographical groupings.

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

MongoDB also supports segregation of database operations based on functional or operational parameters, to ensure that certain mongod instances are only used for reporting workloads or that certain high-frequency portions of a sharded collection only exist on specific shards.

Specifically, with MongoDB, you can:

  • ensure write operations propagate to specific members of a replica set, or to specific members of replica sets.
  • ensure that specific members of a replica set respond to queries.
  • 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, which controls how drivers help applications target read operations to members of a replica set.
  • 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, particularly 副本集基本概念 and 片式集群概述.

最新网友评论  共有(0)条评论 发布评论 返回顶部

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