<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Workload Isolation in MongoDB Deployments
  <a class="headerlink leafygreen-ui-1kepx47" href="#workload-isolation-in-mongodb-deployments" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="workload-isolation-in-mongodb-deployments">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-a5yxub">
  <p class="css-1cmx2d4 ef7gu8j0">
   On this page
  </p>
  <ul class="css-1qb0mst ef7gu8j1">
   <li class="leafygreen-ui-1e7a0ei">
    <a class="lg-ui-0001 leafygreen-ui-e98ikf" href="#operational-overview" target="_self">
     <span>
      Operational Overview
     </span>
    </a>
   </li>
  </ul>
 </div>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Operational Overview
   <a class="headerlink leafygreen-ui-1kepx47" href="#operational-overview" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="operational-overview">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB includes a number of features that allow database
administrators and developers to isolate workload by functional or
geographical groupings.
  </p>
  <p class="leafygreen-ui-1kp3ins">
   This capability provides "data center awareness," which allows
applications to target MongoDB deployments with consideration of the
physical location of the
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
    <code class="leafygreen-ui-1l06pbn">
     mongod
    </code>
   </a>
   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.
  </p>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB also supports workload isolation based on
functional or operational parameters, to ensure that certain
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
    <code class="leafygreen-ui-1l06pbn">
     mongod
    </code>
   </a>
   instances are only used for reporting workloads or
that certain high-frequency portions of a sharded collection only
exist on specific shards.
  </p>
  <p class="leafygreen-ui-1kp3ins">
   Specifically, with MongoDB, you can:
  </p>
  <ul class="leafygreen-ui-rioki0">
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     ensure write operations propagate to specific members of a replica
set, or to specific members of replica sets.
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     ensure that specific members of a replica set respond to queries.
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     ensure that specific ranges of your
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-shard-key">
      shard key
     </a>
     balance onto and
reside on specific
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-shard">
      shards
      <!-- -->
      .
     </a>
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     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.
    </p>
   </li>
  </ul>
  <p class="leafygreen-ui-1kp3ins">
   For full documentation of these features, see the following
documentation in the MongoDB Manual:
  </p>
  <ul class="leafygreen-ui-rioki0">
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/read-preference/#std-label-read-preference">
      Read Preferences
     </a>
     , which controls how drivers
help applications target read operations to members of a replica set.
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/write-concern/#std-label-write-concern">
      Write Concerns
     </a>
     , which controls
how MongoDB ensures that write operations propagate to members of a
replica set.
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-replica-set-tag-sets/#std-label-replica-set-configuration-tag-sets">
      Replica Set Tags
     </a>
     , which
control how applications create and interact with custom groupings
of replica set members to create custom application-specific read
preferences and write concerns.
    </p>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/zone-sharding/#std-label-zone-sharding">
      Zones
     </a>
     in sharded clusters, which allows MongoDB
administrators to create
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zone">
      zones
     </a>
     that represent a group of
shards and associate one or more ranges of
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-shard-key">
      shard key
     </a>
     values to
these zones. You can associate each zone with one or more shards in the
cluster. A shard can associate with any number of zones. In a balanced
cluster, MongoDB directs reads and writes covered by a zone only to the
shards inside the zone.
    </p>
   </li>
  </ul>
  <div class="leafygreen-ui-13vw3ie" role="note">
   <h2 class="leafygreen-ui-1fn4p2b">
    Tip
   </h2>
   <h3 class="leafygreen-ui-144d5kf">
    <strong>
     See also:
    </strong>
   </h3>
   <div class="leafygreen-ui-9mycqc">
    <p class="leafygreen-ui-1kp3ins">
     Before adding workload isolation features to your application
and MongoDB deployment, become familiar with all documentation of
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/replication/#std-label-replication">
      replication
     </a>
     , and
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/sharding/#std-label-sharding-background">
      sharding
      <!-- -->
      .
     </a>
    </p>
   </div>
  </div>
 </section>
</section>
