Skip to content

Commit 8c20af5

Browse files
author
Bob Grabar
committed
added primary shard glossary entry
1 parent ce947e3 commit 8c20af5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

source/administration/sharding.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ more detail or use the following procedure as a quick starting point:
161161
MongoDB creates databases automatically upon their first use.
162162

163163
Once you enable sharding for a database, MongoDB assigns a
164-
"primary" shard for that database, where MongoDB stores all data
164+
:term:`primary shard` for that database, where MongoDB stores all data
165165
before sharding begins.
166166

167167
#. Enable sharding on a per-collection basis.
@@ -295,7 +295,7 @@ To remove a :term:`shard` from a :term:`shard cluster`, you must:
295295

296296
- Migrate :term:`chunks <chunk>` to another shard or database.
297297

298-
- Ensure that this shard is not the "primary" shard for any databases in
298+
- Ensure that this shard is not the :term:`primary shard` for any databases in
299299
the cluster. If it is, move the "primary" status for these databases
300300
to other shards.
301301

@@ -367,7 +367,7 @@ The procedure to remove a shard is as follows:
367367
#. Move any databases to other shards in the cluster as needed.
368368

369369
This is only necessary when removing a shard that is also the
370-
"primary" shard for one or more databases.
370+
:term:`primary shard` for one or more databases.
371371

372372
Issue the following command at the :program:`mongo` shell:
373373

source/reference/command/movePrimary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ movePrimary
77
.. dbcommand:: movePrimary
88

99
In a :term:`shard cluster`, this command reassigns the database's
10-
primary shard. The primary shard for a database holds all
10+
:term:`primary shard`. The primary shard for a database holds all
1111
un-sharded collections in the database. :dbcommand:`movePrimary`
1212
is an administrative command that is only available for
1313
:program:`mongos` instances. Only use :dbcommand:`movePrimary` when

source/reference/glossary.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ Glossary
869869
results. The optimizer then uses the query plan each time the
870870
:program:`mongod` receives the query. If a collection changes significantly, the optimizer
871871
creates a new query plan.
872-
872+
873873
diagnostic log
874874
:program:`mongod` can create a verbose log of operations with
875875
the :option:`mongod --diaglog` option or through the
@@ -883,3 +883,7 @@ Glossary
883883

884884
.. seealso:: :option:`mongod --diaglog`,
885885
:setting:`diaglog`, and :dbcommand:`diagLogging`.
886+
887+
primary shard
888+
For a database in which :term:`sharding` is enabled, the primary
889+
shard holds all un-sharded collections.

source/tutorial/remove-shards-from-cluster.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To remove a shard, you will:
2323

2424
- Move :term:`chunks <chunk>` off of the shard.
2525

26-
- Ensure that this shard is not the "primary" shard for any databases
26+
- Ensure that this shard is not the :term:`primary shard` for any databases
2727
in the cluster. If it is, move the "primary" status for these
2828
databases to other shards.
2929

@@ -97,9 +97,9 @@ Move Unsharded Databases
9797
~~~~~~~~~~~~~~~~~~~~~~~~
9898

9999
Databases with non-sharded collections store those collections on a
100-
single shard known as the "primary" shard for that database. The
100+
single shard known as the :term:`primary shard` for that database. The
101101
following step is necessary only when the shard to remove is
102-
also the "primary" shard for one or more databases.
102+
also the primary shard for one or more databases.
103103

104104
Issue the following command at the :program:`mongo` shell:
105105

0 commit comments

Comments
 (0)