@@ -125,7 +125,7 @@ more detail or use the following procedure as a quick starting point:
125
125
replicaSetName/<seed1>,<seed2>,<seed3>
126
126
127
127
For example, if the name of the replica set is "``repl0``", then
128
- your :func :`sh.addShard` command would be:
128
+ your :method :`sh.addShard` command would be:
129
129
130
130
.. code-block:: javascript
131
131
@@ -136,7 +136,7 @@ more detail or use the following procedure as a quick starting point:
136
136
MongoDB enables sharding on a per-database basis. This is only a
137
137
meta-data change and will not redistribute your data. To enable
138
138
sharding for a given database, use the :dbcommand:`enableSharding`
139
- command or the :func :`sh.enableSharding()` shell function.
139
+ command or the :method :`sh.enableSharding()` shell function.
140
140
141
141
.. code-block:: javascript
142
142
@@ -165,7 +165,7 @@ more detail or use the following procedure as a quick starting point:
165
165
collections must belong to a database for which you have enabled
166
166
sharding. When you shard a collection, you also choose the shard
167
167
key. To shard a collection, run the :dbcommand:`shardCollection`
168
- command or the :func :`sh.shardCollection()` shell helper.
168
+ command or the :method :`sh.shardCollection()` shell helper.
169
169
170
170
.. code-block:: javascript
171
171
@@ -223,7 +223,7 @@ procedure:
223
223
224
224
#. First, you need to tell the cluster where to find the individual
225
225
shards. You can do this using the :dbcommand:`addShard` command or
226
- the :func :`sh.addShard()` helper:
226
+ the :method :`sh.addShard()` helper:
227
227
228
228
.. code-block:: javascript
229
229
@@ -266,7 +266,7 @@ procedure:
266
266
following form: the replica set name, followed by a forward
267
267
slash, followed by a comma-separated list of seeds for the
268
268
replica set. For example, if the name of the replica set is
269
- "myapp1", then your :func :`sh.addShard` command might resemble:
269
+ "myapp1", then your :method :`sh.addShard` command might resemble:
270
270
271
271
.. code-block:: javascript
272
272
@@ -312,7 +312,7 @@ The procedure to remove a shard is as follows:
312
312
shard name when you first ran the :dbcommand:`addShard` command. If not,
313
313
you can find out the name of the shard by running the
314
314
:dbcommand:`listshards` or :dbcommand:`printShardingStatus`
315
- commands or the :func :`sh.status()` shell helper.
315
+ commands or the :method :`sh.status()` shell helper.
316
316
317
317
The following examples will remove a shard named ``mongodb0`` from the cluster.
318
318
@@ -444,11 +444,11 @@ You may want to split chunks manually if:
444
444
keys are between ``250`` and ``500`` are in a single chunk.
445
445
446
446
To determine the current chunk ranges across the cluster, use
447
- :func :`sh.status()` or :func :`db.printShardingStatus()`.
447
+ :method :`sh.status()` or :method :`db.printShardingStatus()`.
448
448
449
449
To split chunks manually, use the :dbcommand:`split` command with
450
450
operators: ``middle`` and ``find``. The equivalent shell helpers are
451
- :func :`sh.splitAt()` or :func :`sh.splitFind()`.
451
+ :method :`sh.splitAt()` or :method :`sh.splitFind()`.
452
452
453
453
.. example::
454
454
@@ -459,13 +459,13 @@ operators: ``middle`` and ``find``. The equivalent shell helpers are
459
459
460
460
sh.splitFind( { "zipcode": 63109 } )
461
461
462
- :func :`sh.splitFind()` will split the chunk containing the queried
462
+ :method :`sh.splitFind()` will split the chunk containing the queried
463
463
document into two equal sized chunks, dividing the chunk using the
464
- balancer algorithm. The :func :`sh.splitFind()` query may not be based
464
+ balancer algorithm. The :method :`sh.splitFind()` query may not be based
465
465
on the shard key, but it makes sense to use the shard key, and
466
466
including the shard key will expedite the operation.
467
467
468
- Use :func :`sh.splitAt()` to split a chunk in two using the queried
468
+ Use :method :`sh.splitAt()` to split a chunk in two using the queried
469
469
document as the partition point:
470
470
471
471
.. code-block:: javascript
@@ -574,7 +574,7 @@ To modify the chunk size, use the following procedure:
574
574
575
575
use config
576
576
577
- #. Issue the following :func :`save() <db.collection.save()>`
577
+ #. Issue the following :method :`save() <db.collection.save()>`
578
578
operation:
579
579
580
580
.. code-block:: javascript
@@ -718,7 +718,7 @@ Here's what this tells you:
718
718
719
719
.. note::
720
720
721
- Use the :func :`sh.isBalancerRunning()` helper in the
721
+ Use the :method :`sh.isBalancerRunning()` helper in the
722
722
:program:`mongo` shell to determine if the balancer is
723
723
running, as follows:
724
724
@@ -746,7 +746,7 @@ be able to migrate chunks:
746
746
747
747
use config
748
748
749
- #. Use an operation modeled on the following example :func :`update()
749
+ #. Use an operation modeled on the following example :method :`update()
750
750
<db.collection.update()>` operation to modify the balancer's
751
751
window:
752
752
@@ -800,10 +800,10 @@ all migration, use the following procedure:
800
800
801
801
If a balancing round is in progress, the system will complete the
802
802
current round before the balancer is officially disabled. After
803
- disabling, you can use the :func :`sh.getBalancerState()` shell
803
+ disabling, you can use the :method :`sh.getBalancerState()` shell
804
804
function to determine whether the balancer is in fact disabled.
805
805
806
- The above process and the :func :`sh.setBalancerState()` helper provide a
806
+ The above process and the :method :`sh.setBalancerState()` helper provide a
807
807
wrapper on the following process, which may be useful if you need to
808
808
run this operation from a driver that does not have helper functions:
809
809
@@ -1168,6 +1168,6 @@ operation:
1168
1168
for the duration of the backup procedure.
1169
1169
1170
1170
Confirm that the balancer is not active using the
1171
- :func :`sh.getBalancerState()` method before starting a backup
1171
+ :method :`sh.getBalancerState()` method before starting a backup
1172
1172
operation. When the backup procedure is complete you can reactivate
1173
1173
the balancer process.
0 commit comments