@@ -24,14 +24,14 @@ sharding in MongoDB deployments.
24
24
25
25
.. note::
26
26
27
- Shard key rage tags are entirely distinct from :ref:`replica set member
27
+ Shard key range tags are entirely distinct from :ref:`replica set member
28
28
tags <replica-set-read-preference-tag-sets>`.
29
29
30
30
Behavior and Operations
31
31
-----------------------
32
32
33
33
Tags in a sharded cluster are pieces of metadata that dictate the
34
- policy and behavior of the cluster balancer :term:`balancer`. Using
34
+ policy and behavior of the cluster :term:`balancer`. Using
35
35
tags, you may associate individual shards in a cluster with one or
36
36
more tags. Then, you can assign this tag string to a range
37
37
of :term:`shard key` values for a sharded collection. When migrating a
@@ -53,10 +53,10 @@ tags, if tagged shards are not balanced. [#specific-tagged-migrations]_
53
53
that:
54
54
55
55
- :term:`Shard key` values between ``100`` and ``200`` have tags to
56
- direct corresponding chunks on shards tagged ``NYC``.
56
+ direct corresponding chunks to shards tagged ``NYC``.
57
57
58
58
- Shard Key values between ``200`` and ``300`` have tags to direct
59
- corresponding chunks on shards tagged ``SFO``.
59
+ corresponding chunks to shards tagged ``SFO``.
60
60
61
61
In this cluster, the balancer will migrate a chunk with shard key
62
62
values ranging between ``150`` and ``220`` to a shard tagged
@@ -162,7 +162,7 @@ View Existing Shard Tags
162
162
The output from :method:`sh.status()` lists tags associated with a
163
163
shard, if any, for each shard. A shard's tags exist in the shard's
164
164
document in the :data:`~config.shards` collection of the ``config``
165
- database. To return all shards with a specific tag use a sequence of
165
+ database. To return all shards with a specific tag, use a sequence of
166
166
operations that resemble the following, which will return only those
167
167
shards tagged with ``NYC``:
168
168
@@ -174,10 +174,10 @@ shards tagged with ``NYC``:
174
174
You can find tag ranges for all :term:`namespaces <namespace>` in the
175
175
:data:`~config.tags` collection of the ``config`` database. The output
176
176
of :method:`sh.status()` displays all tag ranges. To return all shard
177
- key ranges tagged with ``NYC`` issue the following sequence of
177
+ key ranges tagged with ``NYC``, issue the following sequence of
178
178
commands:
179
179
180
180
.. code-block:: javascript
181
181
182
182
use config
183
- db.shards .find({ tags: "NYC" })
183
+ db.tags .find({ tags: "NYC" })
0 commit comments