Skip to content

added primary shard glossary entry #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/administration/sharding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ more detail or use the following procedure as a quick starting point:
MongoDB creates databases automatically upon their first use.

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

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

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

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

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion source/reference/command/movePrimary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ movePrimary
.. dbcommand:: movePrimary

In a :term:`shard cluster`, this command reassigns the database's
primary shard. The primary shard for a database holds all
:term:`primary shard`. The primary shard for a database holds all
un-sharded collections in the database. :dbcommand:`movePrimary`
is an administrative command that is only available for
:program:`mongos` instances. Only use :dbcommand:`movePrimary` when
Expand Down
6 changes: 5 additions & 1 deletion source/reference/glossary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ Glossary
results. The optimizer then uses the query plan each time the
:program:`mongod` receives the query. If a collection changes significantly, the optimizer
creates a new query plan.

diagnostic log
:program:`mongod` can create a verbose log of operations with
the :option:`mongod --diaglog` option or through the
Expand All @@ -883,3 +883,7 @@ Glossary

.. seealso:: :option:`mongod --diaglog`,
:setting:`diaglog`, and :dbcommand:`diagLogging`.

primary shard
For a database in which :term:`sharding` is enabled, the primary
shard holds all un-sharded collections.
6 changes: 3 additions & 3 deletions source/tutorial/remove-shards-from-cluster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To remove a shard, you will:

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

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

Expand Down Expand Up @@ -97,9 +97,9 @@ Move Unsharded Databases
~~~~~~~~~~~~~~~~~~~~~~~~

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

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

Expand Down