File tree Expand file tree Collapse file tree 2 files changed +53
-2
lines changed Expand file tree Collapse file tree 2 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,34 @@ content: |
11
11
12
12
mongosh --host <hostname> --port <port>
13
13
---
14
+ title : Confirm that sharding is enabled on your database.
15
+ ref : new-sharded-tsc-confirm-sharding
16
+ stepnum : 2
17
+ level : 4
18
+ content : |
19
+ Run :method:`sh.status()` to confirm that sharding is enabled on your database:
20
+
21
+ .. code-block:: javascript
22
+
23
+ sh.status()
24
+
25
+ The command returns the sharding information:
26
+
27
+ .. code-block:: javascript
28
+
29
+ --- Sharding Status ---
30
+ sharding version: {
31
+ "_id" : 1,
32
+ "minCompatibleVersion" : 5,
33
+ "currentVersion" : 6,
34
+ ...
35
+
36
+ If ``sh.status()`` returns ``This db does not have sharding enabled.``,
37
+ :ref:`enable sharding <sharding-setup-enable-sharding>`.
38
+ ---
14
39
title : Shard the collection.
15
40
ref : new-sharded-tsc-create
16
- stepnum : 2
41
+ stepnum : 3
17
42
level : 4
18
43
content : |
19
44
Use the :method:`~sh.shardCollection()` method to shard the
Original file line number Diff line number Diff line change @@ -10,10 +10,36 @@ content: |
10
10
.. code-block:: javascript
11
11
12
12
mongosh --host <hostname> --port <port>
13
+
14
+ ---
15
+ title : Confirm that sharding is enabled on your database.
16
+ ref : new-sharded-tsc-confirm-sharding
17
+ stepnum : 2
18
+ level : 4
19
+ content : |
20
+ Run :method:`sh.status()` to confirm that sharding is enabled on your database:
21
+
22
+ .. code-block:: javascript
23
+
24
+ sh.status()
25
+
26
+ The command returns the sharding information:
27
+
28
+ .. code-block:: javascript
29
+
30
+ --- Sharding Status ---
31
+ sharding version: {
32
+ "_id" : 1,
33
+ "minCompatibleVersion" : 5,
34
+ "currentVersion" : 6,
35
+ ...
36
+
37
+ If ``sh.status()`` returns ``This db does not have sharding enabled.``,
38
+ :ref:`enable sharding <sharding-setup-enable-sharding>`.
13
39
---
14
40
title : Create the collection.
15
41
ref : new-sharded-tsc-create
16
- stepnum : 2
42
+ stepnum : 3
17
43
level : 4
18
44
content : |
19
45
Use the :method:`~sh.shardCollection()` method with the :ref:`timeseries
You can’t perform that action at this time.
0 commit comments