Skip to content

Commit 71bc4b6

Browse files
committed
[mongosh] sharding methods
1 parent b62216e commit 71bc4b6

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

source/reference/methods.txt

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,15 @@ Collection Methods
267267

268268
.. getIndexSpecs
269269

270+
* - :method:`db.collection.getShardDistribution()`
271+
272+
- Prints the data distribution statistics for a sharded collection.
273+
274+
* - :method:`db.collection.getShardVersion()`
275+
276+
- Provides a wrapper for the database command :manual:`getShardVersion
277+
</reference/command/getShardVersion/>`.
278+
270279
* - :method:`db.collection.insert()`
271280

272281
- Creates a new document in a collection.
@@ -308,15 +317,6 @@ Collection Methods
308317
- Provides a wrapper around :method:`~db.collection.insert()`
309318
and :method:`~db.collection.update()` to insert new documents.
310319

311-
* - :method:`db.collection.getShardDistribution()`
312-
313-
- Prints the data distribution statistics for a sharded collection.
314-
315-
* - :method:`db.collection.getShardVersion()`
316-
317-
- Provides a wrapper for the database command :manual:`getShardVersion
318-
</reference/command/getShardVersion/>`.
319-
320320
* - :method:`db.collection.stats()`
321321

322322
- Reports on the state of a collection. Provides a wrapper around
@@ -624,6 +624,11 @@ Database Methods
624624

625625
- Ends an authenticated session.
626626

627+
* - :method:`db.printShardingStatus()`
628+
629+
- Prints a formatted report of the sharding configuration and the
630+
information regarding existing chunks in a sharded cluster.
631+
627632
* - :method:`db.runCommand()`
628633

629634
- Runs a :manual:`database command </reference/command>`.
@@ -642,11 +647,6 @@ Database Methods
642647
and :manual:`sampleRate
643648
</reference/method/db.setProfilingLevel/#set-profiling-level-options-samplerate>`.
644649

645-
* - :method:`db.printShardingStatus()`
646-
647-
- Prints a formatted report of the sharding configuration and the
648-
information regarding existing chunks in a sharded cluster.
649-
650650
Free Monitoring Methods
651651
-----------------------
652652

@@ -785,40 +785,40 @@ Sharding Methods
785785

786786
- Description
787787

788-
* - :method:`sh.enableSharding()`
789-
790-
- Enables sharding on a specific database.
791-
792-
* - :method:`sh.shardCollection()`
793-
794-
- Enables sharding for a collection.
795-
796-
* - :method:`sh.status()`
797-
798-
- Reports on the status of a sharded cluster.
799-
800788
* - :method:`sh.addShard()`
801789

802790
- Adds a shard to a sharded cluster.
803791

804792
* - :method:`sh.addShardTag()`
805793

806-
- In MongoDB 3.4 and higher, this method aliases to
807-
:method:`sh.addShardToZone()`.
794+
- Associates a shard with a tag or identifier. In MongoDB 3.4 and
795+
higher, this method aliases to :method:`sh.addShardToZone()`.
808796

809797
* - :method:`sh.addShardToZone()`
810798

811-
- Associates a shard to a zone. Supports configuring zones in sharded
799+
- Associates a shard with a zone. Supports configuring zones in sharded
812800
clusters.
813801

814802
* - :method:`sh.addTagRange()`
815803

816-
- In MongoDB 3.4 and higher, this method aliases to
817-
:method:`sh.updateZoneKeyRange()`.
804+
- Attaches a range of shard key values to a shard tag. In MongoDB 3.4
805+
and higher, this method aliases to :method:`sh.updateZoneKeyRange()`.
806+
807+
* - :method:`sh.enableSharding()`
808+
809+
- Enables sharding on a specific database.
810+
811+
* - :method:`sh.shardCollection()`
812+
813+
- Enables sharding for a collection.
814+
815+
* - :method:`sh.status()`
816+
817+
- Reports on the status of a sharded cluster.
818818

819819
* - :method:`sh.updateZoneKeyRange()`
820820

821-
- Associates a range of shard keys to a zone. Supports configuring
821+
- Associates a range of shard keys with a zone. Supports configuring
822822
zones in sharded clusters.
823823

824824
User Management Methods

0 commit comments

Comments
 (0)