@@ -8,7 +8,7 @@ Shard Cluster Administration
8
8
.. default-domain:: mongodb
9
9
10
10
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>`.
12
12
13
13
For a full introduction to sharding in MongoDB see
14
14
":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:
77
77
78
78
Run the following commands while connected to a :program:`mongos` to
79
79
initialize the cluster.
80
-
80
+
81
81
First, you need to tell the cluster where to find the individual
82
82
shards. You can do this using the :dbcommand:`addShard` command.
83
83
@@ -113,13 +113,13 @@ more detail or use the following procedure as a quick starting point:
113
113
If you do not specify a shard name, then MongoDB will assign a
114
114
name upon creation.
115
115
116
- .. note::
116
+ .. note::
117
117
118
118
.. versionchanged:: 2.0.3
119
119
120
120
Before version 2.0.3, you must specify the shard in the following
121
- form:
122
-
121
+ form:
122
+
123
123
.. code-block:: sh
124
124
125
125
replicaSetName/<seed1>,<seed2>,<seed3>
@@ -192,7 +192,7 @@ more detail or use the following procedure as a quick starting point:
192
192
The choice of shard key is incredibly important: it affects
193
193
everything about the cluster from the efficiency of your queries to
194
194
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.
196
196
197
197
See the ":ref:`Shard Key Overview <sharding-shard-key>`" and the
198
198
more in depth documentation of ":ref:`Shard Key Qualities
@@ -250,7 +250,7 @@ procedure:
250
250
.. code-block:: javascript
251
251
252
252
db.runCommand( { addShard: mongodb0.example.net, name: "mongodb0" } )
253
-
253
+
254
254
Or:
255
255
256
256
.. code-block:: javascript
@@ -423,7 +423,7 @@ You may want to split chunks manually if:
423
423
- you have a large amount of data in your cluster that is *not* split,
424
424
as is the case after creating a shard cluster with existing data.
425
425
426
- - you expect to add a large amount of data that would
426
+ - you expect to add a large amount of data that would
427
427
initially reside in a single chunk or shard.
428
428
429
429
.. example::
@@ -622,12 +622,12 @@ When this command returns, you will see output like the following:
622
622
623
623
.. code-block:: javascript
624
624
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",
631
631
"why" : "doing balance round" }
632
632
633
633
@@ -720,8 +720,8 @@ all migration, use the following procedure:
720
720
721
721
sh.setBalancerState(true)
722
722
723
- .. note::
724
-
723
+ .. note::
724
+
725
725
If a balancing round is in progress, the system will complete the
726
726
current round before the balancer is officially disabled. After
727
727
disabling, you can use the :func:`sh.getBalancerState()` shell
@@ -790,7 +790,7 @@ three config servers.
790
790
existing config server to the two machines that will provide the
791
791
additional config servers. These commands, issued on the system
792
792
with the existing config database, ``mongo-config0.example.net`` may
793
- look like the following:
793
+ look like the following:
794
794
795
795
.. code-block:: sh
796
796
@@ -858,7 +858,7 @@ possible, avoid changing the hostname so that you can use the
858
858
859
859
#. Shut down the config server that you are moving.
860
860
861
- This will render all config data for your cluster "read only:"
861
+ This will render all config data for your cluster "read only:"
862
862
863
863
.. TODO - make link to config servers page
864
864
0 commit comments