Skip to content

Commit e0eb12f

Browse files
author
Sam Kleinman
committed
minor whitespace corrections
1 parent 8a3983b commit e0eb12f

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

source/administration/sharding-architectures.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ instance or replica set (i.e. a :term:`shard`.)
9090
ensure that all queries and operations use the :term:`mongos`
9191
router to access the data cluster. Use the :program:`mongos` even
9292
for operations that do not impact the sharded data.
93-
93+
9494
Every database has a "primary" [#overloaded-primary-term]_ shard that
9595
holds all un-sharded collections in that database. All collections
9696
that *are not* sharded reside on the primary for their database. Use

source/administration/sharding.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Shard Cluster Administration
88
.. default-domain:: mongodb
99

1010
This document provides a collection of basic operations and procedures
11-
for administering :term:`shard clusters <shard cluster>`.
11+
for administering :term:`shard clusters <shard cluster>`.
1212

1313
For a full introduction to sharding in MongoDB see
1414
":doc:`/core/sharding`," and for a complete overview of all sharding
@@ -77,7 +77,7 @@ more detail or use the following procedure as a quick starting point:
7777

7878
Run the following commands while connected to a :program:`mongos` to
7979
initialize the cluster.
80-
80+
8181
First, you need to tell the cluster where to find the individual
8282
shards. You can do this using the :dbcommand:`addShard` command.
8383

@@ -113,13 +113,13 @@ more detail or use the following procedure as a quick starting point:
113113
If you do not specify a shard name, then MongoDB will assign a
114114
name upon creation.
115115

116-
.. note::
116+
.. note::
117117

118118
.. versionchanged:: 2.0.3
119119

120120
Before version 2.0.3, you must specify the shard in the following
121-
form:
122-
121+
form:
122+
123123
.. code-block:: sh
124124

125125
replicaSetName/<seed1>,<seed2>,<seed3>
@@ -192,7 +192,7 @@ more detail or use the following procedure as a quick starting point:
192192
The choice of shard key is incredibly important: it affects
193193
everything about the cluster from the efficiency of your queries to
194194
the distribution of data. Furthermore, you cannot change a
195-
collection's shard key once it has been set.
195+
collection's shard key once it has been set.
196196

197197
See the ":ref:`Shard Key Overview <sharding-shard-key>`" and the
198198
more in depth documentation of ":ref:`Shard Key Qualities
@@ -250,7 +250,7 @@ procedure:
250250
.. code-block:: javascript
251251

252252
db.runCommand( { addShard: mongodb0.example.net, name: "mongodb0" } )
253-
253+
254254
Or:
255255

256256
.. code-block:: javascript
@@ -423,7 +423,7 @@ You may want to split chunks manually if:
423423
- you have a large amount of data in your cluster that is *not* split,
424424
as is the case after creating a shard cluster with existing data.
425425

426-
- you expect to add a large amount of data that would
426+
- you expect to add a large amount of data that would
427427
initially reside in a single chunk or shard.
428428

429429
.. example::
@@ -622,12 +622,12 @@ When this command returns, you will see output like the following:
622622

623623
.. code-block:: javascript
624624

625-
{ "_id" : "balancer",
626-
"process" : "guaruja:1292810611:1804289383",
627-
"state" : 2,
628-
"ts" : ObjectId("4d0f872630c42d1978be8a2e"),
629-
"when" : "Mon Dec 20 2010 11:41:10 GMT-0500 (EST)",
630-
"who" : "guaruja:1292810611:1804289383:Balancer:846930886",
625+
{ "_id" : "balancer",
626+
"process" : "guaruja:1292810611:1804289383",
627+
"state" : 2,
628+
"ts" : ObjectId("4d0f872630c42d1978be8a2e"),
629+
"when" : "Mon Dec 20 2010 11:41:10 GMT-0500 (EST)",
630+
"who" : "guaruja:1292810611:1804289383:Balancer:846930886",
631631
"why" : "doing balance round" }
632632

633633

@@ -720,8 +720,8 @@ all migration, use the following procedure:
720720

721721
sh.setBalancerState(true)
722722

723-
.. note::
724-
723+
.. note::
724+
725725
If a balancing round is in progress, the system will complete the
726726
current round before the balancer is officially disabled. After
727727
disabling, you can use the :func:`sh.getBalancerState()` shell
@@ -790,7 +790,7 @@ three config servers.
790790
existing config server to the two machines that will provide the
791791
additional config servers. These commands, issued on the system
792792
with the existing config database, ``mongo-config0.example.net`` may
793-
look like the following:
793+
look like the following:
794794

795795
.. code-block:: sh
796796

@@ -858,7 +858,7 @@ possible, avoid changing the hostname so that you can use the
858858

859859
#. Shut down the config server that you are moving.
860860

861-
This will render all config data for your cluster "read only:"
861+
This will render all config data for your cluster "read only:"
862862

863863
.. TODO - make link to config servers page
864864

source/core/sharding-internals.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ provides better performance. Even if you query values of the shard
154154
key reside in different chunks, the :program:`mongos` will route
155155
queries directly to specific shards.
156156

157-
To select a shard key for a collection:
157+
To select a shard key for a collection:
158158

159159
- determine which fields are included most frequently in queries for a
160160
given application
@@ -216,7 +216,7 @@ Furethermore:
216216

217217
- If your shard key distributes data required for every operation
218218
throughout the cluster, then the failure of the entire shard will
219-
render the entire cluster unavailable.
219+
render the entire cluster unavailable.
220220

221221
In essence, this concern for reliably simply underscores the
222222
importance of choosing a shard key that isolates query operations to a
@@ -240,10 +240,10 @@ are three options:
240240
write operations and query isolation.
241241

242242
#. Determine that the impact of using a less than ideal shard key,
243-
is insignificant in your use case given:
243+
is insignificant in your use case given:
244244

245245
- limited write volume,
246-
- expected data size, or
246+
- expected data size, or
247247
- query patterns and demands.
248248

249249
From a decision making stand point, begin by finding the field
@@ -323,7 +323,7 @@ Chunk size is arbitrary and must account for the following:
323323

324324
#. Small chunks lead to a more even distribution of data at the
325325
expense of more frequent migrations, which creates expense at the
326-
query routing (:program:`mongos`) layer. Or
326+
query routing (:program:`mongos`) layer.
327327

328328
#. Large chunks lead to fewer migrations, which is more efficient both
329329
from the networking perspective *and* in terms internal overhead at

0 commit comments

Comments
 (0)