@@ -53,25 +53,44 @@ Scale a Sharded Cluster
53
53
Considerations
54
54
--------------
55
55
56
- The |k8s-op-short| does not support modifying deployment types.
57
- For example, you cannot convert a standalone deployment to a
58
- replica set. To modify the type of a deployment,
59
- we recommend the following procedure:
56
+ - For MongoDB 4.4 deployments, you can increase or decrease the
57
+ number of members in a replica set or a sharded cluster by only one
58
+ member at a time.
60
59
61
- 1. Create the new deployment with the desired configuration.
60
+ .. example::
62
61
63
- #. :opsmgr:`Back up the data </tutorial/nav/backup-deployments/>` from
64
- your current deployment.
62
+ To scale a replica set from three members to five members, you
63
+ must:
65
64
66
- #. :opsmgr:`Restore the data
67
- </tutorial/nav/backup-restore-deployments/>` from your current
68
- deployment to the new deployment.
65
+ 1. Change the value of the :setting:`spec.members` setting from
66
+ ``3`` to ``4``.
69
67
70
- #. Test your application connections to the new deployment as needed .
68
+ #. Reapply the configuration to |k8s| .
71
69
72
- #. Once you have verified that the new deployment contains the
73
- required data and can be reached by your application(s), bring
74
- down the old deployment.
70
+ #. Change the value of the :setting:`spec.members` setting from
71
+ ``4`` to ``5``.
72
+
73
+ #. Reapply the configuration to |k8s|.
74
+
75
+ - The |k8s-op-short| does not support modifying deployment types.
76
+ For example, you cannot convert a standalone deployment to a
77
+ replica set. To modify the type of a deployment,
78
+ we recommend the following procedure:
79
+
80
+ 1. Create the new deployment with the desired configuration.
81
+
82
+ #. :opsmgr:`Back up the data </tutorial/nav/backup-deployments/>` from
83
+ your current deployment.
84
+
85
+ #. :opsmgr:`Restore the data
86
+ </tutorial/nav/backup-restore-deployments/>` from your current
87
+ deployment to the new deployment.
88
+
89
+ #. Test your application connections to the new deployment as needed.
90
+
91
+ #. Once you have verified that the new deployment contains the
92
+ required data and can be reached by your application(s), bring
93
+ down the old deployment.
75
94
76
95
Examples
77
96
--------
@@ -99,6 +118,12 @@ want to scale:
99
118
1. Adjust the :setting:`spec.members` setting to the desired
100
119
number of members:
101
120
121
+ .. important::
122
+
123
+ For MongoDB 4.4 deployments, you can increase or decrease
124
+ the number of members in a replica set by only one member at
125
+ a time.
126
+
102
127
.. literalinclude:: /includes/code-examples/yaml-files/example-replica-set.yaml
103
128
:language: yaml
104
129
:start-after: START-scaled-replset
@@ -129,6 +154,12 @@ want to scale:
129
154
130
155
1. Adjust the following settings to the desired values:
131
156
157
+ .. important::
158
+
159
+ For MongoDB 4.4 deployments, you can increase or decrease
160
+ the number of members in a sharded cluster by only one
161
+ member at a time.
162
+
132
163
- :setting:`spec.shardCount`
133
164
- :setting:`spec.mongodsPerShardCount`
134
165
- :setting:`spec.mongosCount`
0 commit comments