@@ -33,12 +33,10 @@ Administration Methods
33
33
34
34
- Runs a command against the ``admin`` database.
35
35
36
-
37
36
* - :method:`db.currentOp()`
38
37
39
38
- Reports the current in-progress operations.
40
39
41
-
42
40
* - :method:`db.killOp()`
43
41
44
42
- Terminates a specified operation.
@@ -269,6 +267,15 @@ Collection Methods
269
267
270
268
.. getIndexSpecs
271
269
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
+
272
279
* - :method:`db.collection.insert()`
273
280
274
281
- Creates a new document in a collection.
@@ -307,7 +314,7 @@ Collection Methods
307
314
308
315
* - :method:`db.collection.save()`
309
316
310
- - Provides a wrapper around an :method:`~db.collection.insert()`
317
+ - Provides a wrapper around :method:`~db.collection.insert()`
311
318
and :method:`~db.collection.update()` to insert new documents.
312
319
313
320
* - :method:`db.collection.stats()`
@@ -617,6 +624,11 @@ Database Methods
617
624
618
625
- Ends an authenticated session.
619
626
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
+
620
632
* - :method:`db.runCommand()`
621
633
622
634
- Runs a :manual:`database command </reference/command>`.
@@ -762,6 +774,51 @@ Server Status Methods
762
774
763
775
- Returns the version of the :binary:`~mongod` instance.
764
776
777
+ Sharding Methods
778
+ ----------------
779
+
780
+ .. list-table::
781
+ :widths: 30 70
782
+ :header-rows: 1
783
+
784
+ * - Method
785
+
786
+ - Description
787
+
788
+ * - :method:`sh.addShard()`
789
+
790
+ - Adds a shard to a sharded cluster.
791
+
792
+ * - :method:`sh.addShardTag()`
793
+
794
+ - Aliases to :method:`sh.addShardToZone()`.
795
+
796
+ * - :method:`sh.addShardToZone()`
797
+
798
+ - Associates a shard with a zone. Supports configuring zones in sharded
799
+ clusters.
800
+
801
+ * - :method:`sh.addTagRange()`
802
+
803
+ - Aliases to :method:`sh.updateZoneKeyRange()`.
804
+
805
+ * - :method:`sh.enableSharding()`
806
+
807
+ - Enables sharding on a specific database.
808
+
809
+ * - :method:`sh.shardCollection()`
810
+
811
+ - Enables sharding for a collection.
812
+
813
+ * - :method:`sh.status()`
814
+
815
+ - Reports on the status of a sharded cluster.
816
+
817
+ * - :method:`sh.updateZoneKeyRange()`
818
+
819
+ - Associates a range of shard keys with a zone. Supports configuring
820
+ zones in sharded clusters.
821
+
765
822
User Management Methods
766
823
-----------------------
767
824
0 commit comments